/* Login & guest auth pages */
.auth-page {
    margin: 0;
    min-height: 100vh;
    font-family: Roboto, sans-serif;
    background: #eff3f6;
    color: #2c3e50;
}

.auth-page__shell {
    display: flex;
    min-height: 100vh;
}

.auth-page__brand {
    flex: 1 1 48%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 40px;
    background: linear-gradient(145deg, var(--color-primary) 0%, #2a7aad 55%, #1d5f85 100%);
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.auth-page__brand::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -80px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.auth-page__brand::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -60px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
}

.auth-page__brand-inner {
    position: relative;
    z-index: 1;
    max-width: 380px;
}

.auth-page__brand-logo {
    display: inline-block;
    padding: 14px 22px;
    margin-bottom: 28px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.15);
}

.auth-page__brand-logo img {
    display: block;
    max-height: 52px;
    width: auto;
    max-width: 220px;
}

.auth-page__brand-title {
    margin: 0 0 12px;
    font-family: Prompt, sans-serif;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.auth-page__brand-text {
    margin: 0;
    font-size: 15px;
    line-height: 1.55;
    opacity: 0.92;
}

.auth-page__main {
    flex: 1 1 52%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 24px;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border: 1px solid #e4e7eb;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.08);
    padding: 36px 32px 32px;
}

.auth-card__head {
    text-align: center;
    margin-bottom: 28px;
}

.auth-card__head-logo {
    display: none;
}

.auth-card__title {
    margin: 0 0 8px;
    font-family: Prompt, sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #2c3e50;
}

.auth-card__subtitle {
    margin: 0;
    font-size: 14px;
    color: #98a6ad;
    line-height: 1.45;
}

.auth-alert {
    padding: 12px 14px;
    margin-bottom: 16px;
    font-size: 13px;
    line-height: 1.45;
    border-radius: 8px;
    border: 1px solid transparent;
}

.auth-alert--error {
    color: #922b21;
    background: #fdf3f3;
    border-color: #f5c6cb;
}

.auth-alert--success {
    color: #1e6b45;
    background: #edf9f2;
    border-color: #b8e6cc;
}

.auth-form {
    margin: 0;
}

.auth-field {
    margin-bottom: 18px;
}

.auth-field__label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #58666e;
}

.auth-field__wrap {
    position: relative;
}

.auth-field__icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 15px;
    color: #98a6ad;
    pointer-events: none;
    z-index: 2;
}

.auth-field__input {
    display: block;
    width: 100%;
    height: 44px;
    padding: 0 14px 0 42px;
    font-size: 14px;
    color: #2c3e50;
    background: #fff;
    border: 1px solid #d8dce3;
    border-radius: 8px;
    box-shadow: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth-field__input:focus {
    border-color: var(--color-primary);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(57, 154, 205, 0.2);
}

.auth-field__input::placeholder {
    color: #b0b8c0;
}

.auth-field__wrap--has-toggle .auth-field__input {
    padding-right: 44px;
}

.auth-field__toggle {
    position: absolute;
    top: 0;
    right: 0;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #98a6ad;
    line-height: 44px;
    text-align: center;
    cursor: pointer;
    border-radius: 0 8px 8px 0;
    z-index: 2;
}

.auth-field__toggle:hover,
.auth-field__toggle:focus {
    color: var(--color-primary);
    outline: none;
}

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

.auth-form__remember {
    margin: 0;
    font-size: 13px;
    font-weight: 500;
    color: #58666e;
    cursor: pointer;
}

.auth-form__remember input {
    margin: 0 8px 0 0;
    vertical-align: middle;
}

.auth-form__forgot {
    font-size: 13px;
    font-weight: 500;
    color: var(--color-primary);
    text-decoration: none;
}

.auth-form__forgot:hover,
.auth-form__forgot:focus {
    color: #2a7aad;
    text-decoration: underline;
}

.auth-form__submit {
    display: block;
    width: 100%;
    height: 46px;
    padding: 0 20px;
    font-family: Prompt, sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(90deg, var(--color-primary) 0%, #2e86b8 100%);
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(57, 154, 205, 0.35);
    cursor: pointer;
    transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

.auth-form__submit:hover,
.auth-form__submit:focus {
    background: linear-gradient(90deg, #3388b8 0%, #2a7aad 100%);
    box-shadow: 0 6px 18px rgba(57, 154, 205, 0.45);
    color: #fff;
    outline: 0;
}

.auth-form__submit:active {
    transform: translateY(1px);
}

.auth-card__footer {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #eef1f5;
    text-align: center;
    font-size: 12px;
    color: #98a6ad;
}

@media (max-width: 991px) {
    .auth-page__shell {
        flex-direction: column;
    }

    .auth-page__brand {
        flex: 0 0 auto;
        padding: 36px 24px 32px;
    }

    .auth-page__brand-title {
        font-size: 22px;
    }

    .auth-page__brand-text {
        font-size: 14px;
    }

    .auth-card__head-logo {
        display: inline-block;
        margin-bottom: 16px;
    }

    .auth-card__head-logo img {
        max-height: 40px;
        width: auto;
    }

    .auth-page__brand-logo {
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .auth-card {
        padding: 28px 20px 24px;
        border-radius: 10px;
        box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
    }

    .auth-form__row {
        flex-direction: column;
        align-items: flex-start;
    }
}
