﻿:root {
    --main-bg: #f6f7fb;
    --header-bg: #1d2736;
    --section-bg: #ffffff;
    --primary: #234AA9;
    --primary-hover: #1B3878;
    --accent: #2DE1FC;
    --cta: #FF8A47;
    --text-main: #1a2331;
    --text-light: #fff;
    --card-shadow: 0 2px 24px rgba(35,74,169,0.07);
    --radius-lg: 24px;
    --radius-md: 16px;
}

/* Корневая секция на всю высоту (если не используете .auth-hero) */
.auth-root {
    min-height: 100vh;
    background: var(--main-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

/* HERO-блок с заголовком, акцентом и описанием */
.auth-hero {
    background: linear-gradient(101deg, #1d2736 0%, #244B91 80%, #F6F7FB 120%);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 36px rgba(35,74,169,0.13);
    max-width: 420px;
    margin: 2.5rem auto 0 auto;
    padding: 2.3rem 2rem 2rem 2rem;
    text-align: center;
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: box-shadow 0.2s, transform 0.14s;
}

    /* Заголовок */
    .auth-hero .auth-title {
        font-size: 2.1rem;
        font-weight: 900;
        margin-bottom: 0.4em;
        margin-top: 0.1em;
        letter-spacing: -0.01em;
        line-height: 1.17;
        word-break: break-word;
        text-align: center;
    }

    /* Оранжевая акцентная строка */
    .auth-hero .auth-accent {
        display: block;
        color: var(--cta);
        font-weight: 900;
        font-size: 1.3em;
        margin-top: 0.2em;
        line-height: 1.15;
        word-break: break-word;
    }

    /* Описание под заголовком */
    .auth-hero .auth-desc {
        color: #e8eaf2;
        font-size: 1.09rem;
        font-weight: 500;
        margin-bottom: 1.2em;
        margin-top: 0.2em;
        line-height: 1.35;
        text-align: center;
    }

/* Карточка формы */
.auth-card {
    background: var(--section-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--card-shadow);
    width: 100%;
    max-width: 370px;
    margin: 0 auto;
    padding: 1.5rem 1.2rem 1.2rem 1.2rem;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    transition: box-shadow 0.2s, transform 0.14s;
}

/* Поля ввода */
.auth-field .mud-input-root,
.auth-field .mud-input-label {
    font-size: 1.08rem;
    color: var(--primary);
}

.auth-field .mud-input-root {
    background: #f6f7fb !important;
    border-radius: 12px;
    min-height: 46px;
}

.auth-field .mud-input-label {
    font-weight: 600;
}

/* Кнопка */
.auth-btn {
    background: var(--cta) !important;
    color: var(--text-light) !important;
    font-weight: 700;
    border-radius: 13px !important;
    font-size: 1.09rem !important;
    min-height: 44px;
    box-shadow: 0 3px 18px rgba(255,138,71,0.09);
    transition: background 0.15s, box-shadow 0.13s;
}

    .auth-btn:hover {
        background: #ee7022 !important;
        color: var(--text-light) !important;
        box-shadow: 0 8px 28px rgba(255,138,71,0.16);
    }

/* Чекбокс */
.auth-checkbox .mud-checkbox-label {
    font-size: 0.97rem;
    color: #37425e;
    font-weight: 500;
}

/* Ошибки */
.auth-error {
    color: #e74c3c;
    font-size: 0.96rem;
    margin-top: 0.5rem;
    min-height: 18px;
    text-align: left;
    transition: color 0.16s;
}

/* Ссылки под формой */
.auth-bottom-link {
    margin-top: 1.1rem;
    text-align: center;
}

.auth-link {
    margin-left: 0.3em;
    color: var(--accent) !important;
    text-decoration: underline !important;
    font-weight: 600;
    font-size: 1.05rem;
    background: transparent !important;
    cursor: pointer;
    transition: color 0.14s;
}

    .auth-link:hover {
        color: var(--primary) !important;
    }

/* Мобильная адаптация */
@media (max-width: 600px) {
    .auth-hero {
        padding: 1rem 0.3rem 1.1rem 0.3rem;
        border-radius: 13px;
        max-width: 99vw;
    }

        .auth-hero .auth-title {
            font-size: 1.17rem;
        }

    .auth-card {
        max-width: 99vw;
        padding: 1rem 0.3rem 1.1rem 0.3rem;
        border-radius: 13px;
    }
}
