:root {
    --auth-navy: #000b4f;
    --auth-navy-mid: #0a1a6b;
    --auth-navy-dark: #0a0e2a;
    --auth-green: #7dcea0;
    --auth-green-dark: #62c489;
    --auth-white: #ffffff;
    --auth-muted: rgba(255, 255, 255, 0.72);
}

*, *::before, *::after {
    box-sizing: border-box;
}

.auth-page {
    min-height: 100vh;
    margin: 0;
    font-family: 'Exo', sans-serif;
    background: var(--auth-navy-dark);
    color: var(--auth-white);
}

.auth-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
    min-height: 100vh;
}

.auth-showcase {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px 56px;
    overflow: hidden;
    background: linear-gradient(145deg, var(--auth-navy) 0%, var(--auth-navy-mid) 55%, var(--auth-navy-dark) 100%);
}

.auth-showcase-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(125, 206, 160, 0.18), transparent 28%),
        radial-gradient(circle at 85% 75%, rgba(75, 73, 172, 0.22), transparent 32%);
    pointer-events: none;
}

.auth-showcase-logo {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 48px;
}

.auth-showcase-logo--compact {
    display: none;
    margin-bottom: 28px;
}

.auth-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    padding: 8px;
    border-radius: 14px;
    background: linear-gradient(180deg, var(--auth-green-dark) 0%, var(--auth-green) 100%);
    color: #fff;
    flex-shrink: 0;
}

.auth-brand-mark .app-brand-icon {
    width: 100%;
    height: 100%;
}

.auth-brand-mark .app-brand-paw-main,
.auth-brand-mark .app-brand-icon circle {
    fill: #fff;
}

.auth-brand-divider {
    width: 1px;
    height: 42px;
    background: rgba(255, 255, 255, 0.28);
    flex-shrink: 0;
}

.auth-brand-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.auth-brand-title {
    font-size: 1.85rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.05;
    color: #fff;
}

.auth-brand-title span {
    color: var(--auth-green);
}

.auth-brand-tagline {
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--auth-muted);
    line-height: 1.2;
}

.auth-slider {
    position: relative;
    z-index: 1;
    min-height: 260px;
}

.auth-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateY(18px);
    pointer-events: none;
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.auth-slide.is-active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.auth-slide-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: 22px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--auth-green);
    font-size: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.auth-slide h2 {
    margin: 0 0 12px;
    font-size: clamp(1.6rem, 2.4vw, 2.2rem);
    font-weight: 700;
    line-height: 1.15;
}

.auth-slide p {
    margin: 0;
    max-width: 520px;
    font-size: 1.02rem;
    line-height: 1.65;
    color: var(--auth-muted);
}

.auth-slider-nav {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 10px;
    margin-top: 36px;
}

.auth-slider-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.24);
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease;
}

.auth-slider-dot.is-active {
    width: 28px;
    background: var(--auth-green);
}

.auth-showcase-progress {
    position: relative;
    z-index: 1;
    height: 3px;
    margin-top: 28px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    overflow: hidden;
}

.auth-showcase-progress-bar {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--auth-green-dark), var(--auth-green));
}

.auth-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 24px;
    background: linear-gradient(180deg, #f4f7fb 0%, #eef2f8 100%);
}

.auth-card {
    width: 100%;
    max-width: 440px;
    padding: 36px 32px;
    border-radius: 24px;
    background: #fff;
    border: 1px solid rgba(10, 14, 42, 0.06);
    box-shadow: 0 24px 60px rgba(0, 11, 79, 0.12);
}

.auth-card-heading {
    margin: 0 0 8px;
    color: var(--auth-navy-dark);
    font-size: 1.65rem;
    font-weight: 700;
}

.auth-card-subtitle {
    margin: 0 0 24px;
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.5;
}

.auth-alert {
    background: rgba(231, 76, 60, 0.1);
    color: #c0392b;
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 18px;
    font-size: 0.92rem;
}

.auth-field {
    margin-bottom: 18px;
}

.auth-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #334155;
    font-size: 0.92rem;
}

.auth-input-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    border: 1px solid #dbe3ee;
    border-radius: 14px;
    background: #f8fafc;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.auth-input-wrap:focus-within {
    border-color: var(--auth-navy-mid);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(0, 11, 79, 0.08);
}

.auth-input-wrap i {
    color: #94a3b8;
    font-size: 0.95rem;
}

.auth-field input {
    width: 100%;
    border: none;
    background: transparent;
    padding: 14px 0;
    font-family: inherit;
    font-size: 1rem;
    color: #0f172a;
    outline: none;
}

.auth-field input::placeholder {
    color: #94a3b8;
}

.auth-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin-top: 10px;
    border: none;
    border-radius: 14px;
    padding: 15px 18px;
    background: linear-gradient(135deg, var(--auth-navy-mid), var(--auth-navy));
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
    box-shadow: 0 12px 28px rgba(0, 11, 79, 0.22);
}

.auth-submit:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
    box-shadow: 0 16px 32px rgba(0, 11, 79, 0.28);
}

.auth-submit:active {
    transform: translateY(0);
}

@media (max-width: 960px) {
    .auth-shell {
        grid-template-columns: 1fr;
    }

    .auth-showcase {
        min-height: auto;
        padding: 32px 24px 28px;
    }

    .auth-showcase-logo:not(.auth-showcase-logo--compact) {
        margin-bottom: 28px;
    }

    .auth-slider {
        min-height: 220px;
    }

    .auth-showcase-progress {
        display: none;
    }

    .auth-panel {
        padding: 0 20px 28px;
        margin-top: -12px;
    }

    .auth-card {
        padding: 28px 22px;
    }
}

@media (max-width: 520px) {
    .auth-showcase-logo:not(.auth-showcase-logo--compact) {
        display: none;
    }

    .auth-showcase-logo--compact {
        display: flex;
    }

    .auth-brand-title {
        font-size: 1.55rem;
    }
}
