.auth-shell {
    --auth-blue: #465ad8;
    --auth-blue-dark: #3446bd;
    --auth-ink: #171923;
    --auth-muted: #667085;
    --auth-soft: #f6f7fb;
    --auth-line: #e5e8f0;
    --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
    width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

.header,
.footer {
    display: none !important;
}

.main-container {
    min-height: 100vh;
    background: #fff;
}

.content-area {
    padding: 0 !important;
}

.auth-layout {
    display: grid;
    min-height: 100vh;
    border: none;
    border-radius: 0;
    overflow: hidden;
    background: #fff;
}

.auth-eyebrow {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 0.45rem;
    border: 1px solid rgba(70, 90, 216, 0.18);
    border-radius: 999px;
    padding: 0.38rem 0.72rem;
    color: var(--auth-blue);
    background: rgba(70, 90, 216, 0.08);
    font-size: 0.78rem;
    font-weight: 800;
}

.auth-container {
    min-height: 100vh;
    padding: clamp(2rem, 5vw, 4rem);
    border-left: 1px solid var(--auth-line);
    background: #fff;
}

.auth-header {
    margin-bottom: 1.65rem;
}

.auth-header h2 {
    margin: 0 0 0.42rem;
    color: var(--auth-ink);
    font-size: 1.75rem;
    letter-spacing: -0.045em;
}

.auth-header p {
    margin: 0;
    color: var(--auth-muted);
    line-height: 1.5;
}

.form-label {
    display: block;
    margin-bottom: 0.45rem;
    color: var(--auth-ink);
    font-size: 0.86rem;
    font-weight: 800;
}

.form-control {
    width: 100%;
    min-height: 46px;
    border: 1px solid #d9deea;
    border-radius: 14px;
    padding: 0.78rem 0.9rem;
    color: var(--auth-ink);
    background: #fff;
    transition: border-color 160ms var(--ease-out), box-shadow 160ms var(--ease-out);
}

.form-control:focus {
    border-color: var(--auth-blue);
    box-shadow: 0 0 0 4px rgba(70, 90, 216, 0.12);
}

.auth-links a {
    color: var(--auth-blue);
    text-decoration: none;
    font-weight: 750;
}

.auth-links a:hover {
    color: var(--auth-blue-dark);
    text-decoration: underline;
}

.btn-login,
.btn-register {
    display: inline-flex;
    width: 100%;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    border: none;
    border-radius: 999px;
    padding: 0.85rem 1rem;
    background: var(--auth-blue);
    color: #fff;
    font-weight: 850;
    transition: background-color 160ms var(--ease-out), transform 160ms var(--ease-out);
}

.btn-login:hover,
.btn-register:hover {
    background: var(--auth-blue-dark);
    color: #fff;
}

.btn-login:active,
.btn-register:active {
    transform: scale(0.98);
}

.btn-login:disabled,
.btn-register:disabled {
    cursor: not-allowed;
    opacity: 0.7;
    transform: none;
}

.auth-links {
    margin-top: 1.3rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--auth-line);
    color: var(--auth-muted);
    text-align: center;
}

.auth-links p {
    margin: 0.35rem 0;
}

.error-message,
.success-message {
    border-radius: 14px;
    padding: 0.78rem 0.9rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.error-message {
    border: 1px solid #f4b8bb;
    background: #fff3f3;
    color: #9f1f2b;
}

.success-message {
    border: 1px solid #b9e5cf;
    background: #f1fbf6;
    color: #17623a;
}

.loading-spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 800ms linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 980px) {
    .auth-layout {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .auth-shell {
        min-height: auto;
    }

    .auth-story,
    .auth-container {
        min-height: auto;
    }

    .auth-container {
        border-left: none;
        border-top: 1px solid var(--auth-line);
    }
}
