/**
 * Страница авторизации /auth/ — стили в шаблоне mailVue
 */

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    background: black;
}

.lx-bg {
    top: -400px;
    width: 1980px;
    height: 600px;
    filter: blur(120px);
    position: absolute;
    z-index: 0;
    left: 50%;
    border-radius: 50%;
    background: #00ceff1a;
    transform: translate(-50%);
}

.auth-footer {
    position: absolute;
    color: white;
    bottom: 70px;
    text-align: center;
    color: #6e788a !important;
    font-size: 13px;
}
.auth-footer a {
    color: #6e788a !important;
    text-decoration: none;
}

.auth-footer-links a {
    color: #6e788a !important;
    font-size: 14px;
    text-decoration: none;
    margin-right: 20px;
}

.auth-footer-private {
    display: block;
    font-size: 13px;
    padding-top: 10px;
}

.auth-form-wrap {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    padding: 40px 32px;
    background: #0b0d10;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.auth-form .field-row {
    margin-bottom: 16px;
}

.auth-form label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    color: var(--cv-text-muted, #5f6368);
}

.auth-form input[type="text"],
.auth-form input[type="password"] {
    width: 100%;
    padding: 10px 12px;
    font-size: 15px;
    border: 1px solid var(--cv-border, #e8eaed);
    border-radius: 6px;
    box-sizing: border-box;
    background: var(--cv-bg, #fff);
    color: var(--cv-text, #1a1a1a);
}

.auth-form input::placeholder {
    color: var(--cv-text-muted, #5f6368);
}

.auth-form input:focus {
    outline: none;
    border-color: var(--cv-accent, #2fc6f6);
    box-shadow: 0 0 0 2px rgba(47, 198, 246, 0.2);
}

.auth-form .submit-row {
    margin-top: 24px;
}

.auth-form .btn-submit {
    width: 100%;
    padding: 12px;
    font-size: 15px;
    font-weight: 500;
    color: #fff;
    background-color: var(--cv-accent, #2fc6f6);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s;
}

.auth-form .btn-submit:hover {
    background-color: var(--cv-accent-hover, #1eb8e8);
    opacity: 0.95;
}

.auth-form .error-msg {
    margin-bottom: 16px;
    padding: 10px 12px;
    font-size: 14px;
    color: #c00;
    background: rgba(220, 38, 38, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(220, 38, 38, 0.2);
}

.auth-form-wrap .error-msg {
    margin-bottom: 16px;
    padding: 10px 12px;
    font-size: 14px;
    color: #f87171;
    background: rgba(220, 38, 38, 0.12);
    border-radius: 6px;
    border: 1px solid rgba(220, 38, 38, 0.25);
}

.auth-form-wrap__title {
    font-size: 24px;
    font-weight: 500;
    color: #fff;
    margin: 0 0 8px;
}

.auth-form-wrap__title--tabbed {
    margin-top: 0;
}

.auth-form-wrap__title--solo {
    margin-bottom: 28px;
}

.auth-form-wrap__lead {
    margin: 0 0 24px;
    font-size: 14px;
    line-height: 1.45;
    color: #9aa4b2;
}

.auth-tabs {
    display: flex;
    margin: 0 0 8px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-tab {
    flex: 1;
    text-align: center;
    padding: 12px 8px;
    font-size: 14px;
    font-weight: 500;
    color: #9aa4b2;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 2px solid transparent;
    transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.auth-tab:hover {
    color: #e8ecf2;
    background: rgba(255, 255, 255, 0.06);
}

.auth-tab.is-active {
    color: #fff;
    background: rgba(47, 198, 246, 0.12);
    border-bottom-color: var(--cv-accent, #2fc6f6);
}

.auth-form-wrap__switch {
    margin: 20px 0 0;
    font-size: 14px;
    text-align: center;
}

.auth-form-wrap__switch a {
    color: var(--cv-accent, #2fc6f6);
    text-decoration: none;
}

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

.auth-form__links {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 14px;
}

.auth-form__links a {
    color: var(--cv-accent, #2fc6f6);
    text-decoration: none;
}

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

.auth-form__hint {
    margin: 8px 0 0;
    font-size: 12px;
    color: #6e788a;
}

.auth-form__social {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-form__social-label {
    font-size: 13px;
    color: #9aa4b2;
    margin-bottom: 12px;
}

.auth-form .field-row--checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-direction: row;
}

.auth-form .field-row--checkbox label {
    margin-bottom: 0;
    order: 2;
}

.auth-form .field-row--checkbox input {
    width: auto;
    margin: 0;
}

.auth-captcha-img {
    display: block;
    margin: 8px 0;
    border-radius: 4px;
}

/* Форма регистрации (bitrix:main.register, шаблон .default) */
.auth-form-wrap .bx-auth-reg {
    color: #e8ecf2;
}

.auth-form-wrap .bx-auth-reg table {
    width: 100%;
    border-collapse: collapse;
}

.auth-form-wrap .bx-auth-reg thead td {
    display: none;
}

.auth-form-wrap .bx-auth-reg tbody td {
    display: block;
    width: 100% !important;
    padding: 0 0 4px;
    border: none;
    color: #9aa4b2;
    font-size: 14px;
}

.auth-form-wrap .bx-auth-reg tbody td + td {
    padding-bottom: 16px;
}

.auth-form-wrap .bx-auth-reg input[type="text"],
.auth-form-wrap .bx-auth-reg input[type="password"],
.auth-form-wrap .bx-auth-reg input[type="file"],
.auth-form-wrap .bx-auth-reg textarea {
    width: 100%;
    margin-top: 6px;
    padding: 10px 12px;
    font-size: 15px;
    border: 1px solid var(--cv-border, #e8eaed);
    border-radius: 6px;
    box-sizing: border-box;
    background: #fff;
    color: #1a1a1a;
}

.auth-form-wrap .bx-auth-reg select {
    width: 100%;
    margin-top: 6px;
    padding: 10px 12px;
    font-size: 15px;
    border-radius: 6px;
    border: 1px solid var(--cv-border, #e8eaed);
    box-sizing: border-box;
    background: #fff;
    color: #1a1a1a;
}

.auth-form-wrap .bx-auth-reg input:focus,
.auth-form-wrap .bx-auth-reg select:focus,
.auth-form-wrap .bx-auth-reg textarea:focus {
    outline: none;
    border-color: var(--cv-accent, #2fc6f6);
    box-shadow: 0 0 0 2px rgba(47, 198, 246, 0.2);
}

.auth-form-wrap .bx-auth-reg tfoot td {
    display: block;
    padding: 8px 0 0;
    border: none;
}

.auth-form-wrap .bx-auth-reg input[type="submit"],
.auth-form-wrap .bx-auth-reg input[name="register_submit_button"],
.auth-form-wrap .bx-auth-reg input[name="code_submit_button"] {
    width: 100%;
    margin-top: 8px;
    padding: 12px;
    font-size: 15px;
    font-weight: 500;
    color: #fff;
    background-color: var(--cv-accent, #2fc6f6);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s;
}

.auth-form-wrap .bx-auth-reg input[type="submit"]:hover {
    background-color: var(--cv-accent-hover, #1eb8e8);
    opacity: 0.95;
}

.auth-form-wrap .bx-auth-reg .starrequired {
    color: #f87171;
}

.auth-form-wrap .bx-auth-reg > p {
    font-size: 13px;
    color: #9aa4b2;
    margin: 12px 0 0;
}
