/**
 * Вход и регистрация в стиле Design Lab.
 */
.auth-dl {
    padding-bottom: 72px;
}

.auth-dl > .container {
    padding-top: 32px;
}

.auth-dl__narrow {
    max-width: 520px;
    margin: 0 auto;
}

.auth-dl--wide .auth-dl__narrow {
    max-width: 640px;
}

.auth-dl__card {
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    padding: 32px 28px 28px;
    color: rgba(255, 255, 255, 0.92);
}

.auth-dl__head {
    margin-bottom: 24px;
}

.auth-dl__kicker {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #f9d442;
    opacity: 0.95;
}

.auth-dl__title {
    margin: 0 0 10px;
    font-size: clamp(22px, 2.5vw, 28px);
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
}

.auth-dl__subtitle {
    margin: 0;
    font-size: 15px;
    line-height: 1.55;
    opacity: 0.85;
}

.auth-dl__alert {
    margin-bottom: 20px;
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.45;
}

.auth-dl__alert--success {
    background: rgba(109, 153, 133, 0.18);
    border: 1px solid rgba(109, 153, 133, 0.45);
}

.auth-dl__alert--danger {
    background: rgba(180, 60, 60, 0.15);
    border: 1px solid rgba(255, 120, 120, 0.35);
    color: #ffd6d6;
}

.auth-dl__alert ul {
    margin: 0;
    padding-left: 1.1em;
}

.auth-dl__fields {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.auth-dl__grid2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

@media (max-width: 520px) {
    .auth-dl__grid2 {
        grid-template-columns: 1fr;
    }
}

.auth-dl__field label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 0.88;
}

.auth-dl__field input[type="email"],
.auth-dl__field input[type="password"],
.auth-dl__field input[type="text"],
.auth-dl__field input[type="tel"] {
    width: 100%;
    box-sizing: border-box;
    padding: 14px 16px;
    font-size: 15px;
    line-height: 1.4;
    color: #fff;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-dl__field input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.auth-dl__field input:focus {
    border-color: rgba(249, 212, 66, 0.55);
    box-shadow: 0 0 0 1px rgba(249, 212, 66, 0.2);
}

.auth-dl__field textarea {
    width: 100%;
    box-sizing: border-box;
    min-height: 120px;
    padding: 14px 16px;
    font-size: 15px;
    line-height: 1.45;
    color: #fff;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    outline: none;
    resize: vertical;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-dl__field textarea::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.auth-dl__field textarea:focus {
    border-color: rgba(249, 212, 66, 0.55);
    box-shadow: 0 0 0 1px rgba(249, 212, 66, 0.2);
}

.auth-dl__field textarea.is-invalid {
    border-color: rgba(255, 120, 120, 0.6);
}

.auth-dl__field input.is-invalid {
    border-color: rgba(255, 120, 120, 0.6);
}

.auth-dl__field .invalid-feedback,
.auth-dl__invalid {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    color: #ffb4b4;
}

.auth-dl__pw {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-dl__pw input {
    padding-right: 48px;
}

.auth-dl__toggle-pw {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    transition: color 0.2s, background 0.2s;
}

.auth-dl__toggle-pw:hover {
    color: #f9d442;
    background: rgba(255, 255, 255, 0.06);
}

.auth-dl__toggle-pw .auth-dl__eye-on,
.auth-dl__toggle-pw .auth-dl__eye-off {
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-dl__toggle-pw .auth-dl__eye-off {
    display: none;
}

.auth-dl__toggle-pw.is-active .auth-dl__eye-on {
    display: none;
}

.auth-dl__toggle-pw.is-active .auth-dl__eye-off {
    display: flex;
}

.auth-dl__toggle-pw svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.auth-dl__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.auth-dl__check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    line-height: 1.45;
    cursor: pointer;
    opacity: 0.92;
}

.auth-dl__check input {
    margin-top: 3px;
    flex-shrink: 0;
    accent-color: #f9d442;
}

.auth-dl__check a {
    color: #f9d442;
    text-decoration: underline;
}

.auth-dl__link {
    font-size: 14px;
    color: #f9d442;
    text-decoration: none;
}

.auth-dl__link:hover {
    text-decoration: underline;
}

.auth-dl__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin-top: 4px;
    padding: 16px 22px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #12141a;
    background: #f9d442;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: filter 0.2s, transform 0.15s;
}

.auth-dl__submit:hover {
    filter: brightness(1.06);
}

.auth-dl__submit:active {
    transform: scale(0.99);
}

.auth-dl__switch {
    margin-top: 24px;
    text-align: center;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.78);
}

.auth-dl__switch a {
    color: #f9d442;
    font-weight: 600;
    text-decoration: none;
}

.auth-dl__switch a:hover {
    text-decoration: underline;
}
