/* Auth + Public Landing UI */

body.auth-body {
    font-family: var(--font-family);
    background: radial-gradient(circle at top, #dbeafe 0%, #eef2ff 30%, #f8fafc 65%);
    color: var(--gray-900);
    min-height: 100vh;
}

.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1.5rem;
}

.auth-card {
    width: min(1040px, 100%);
    background: white;
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(320px, 1.1fr);
}

.auth-aside {
    background: linear-gradient(145deg, #1d4ed8 0%, #4f46e5 60%, #7c3aed 100%);
    color: white;
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.auth-brand {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.auth-brand-logo {
    font-size: 2.75rem;
    line-height: 1;
}

.auth-brand-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
}

.auth-brand-subtitle {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
    margin: 0;
}

.auth-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.85rem;
    font-size: 0.95rem;
}

.auth-feature-list li {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
}

.auth-feature-list span {
    font-size: 1.1rem;
    line-height: 1;
}

.auth-panel {
    padding: 3rem 2.75rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.auth-eyebrow {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary);
}

.auth-title {
    margin: 0;
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--gray-900);
}

.auth-subtitle {
    margin: 0;
    color: var(--gray-500);
    font-size: 0.95rem;
}

.auth-alert {
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.auth-alert.error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.auth-alert.success {
    background: #ecfdf3;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.auth-form {
    display: grid;
    gap: 1rem;
}

.form-field {
    display: grid;
    gap: 0.5rem;
}

.form-field label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-700);
}

.form-input,
.form-select {
    width: 100%;
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    padding: 0.75rem 0.9rem;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #f8fafc;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
    background: white;
}

.form-hint {
    font-size: 0.8rem;
    color: var(--gray-400);
}

.auth-button {
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    border: none;
    background: var(--primary);
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.auth-button:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.25);
}

.auth-links {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--gray-500);
}

.auth-links a,
.auth-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.auth-links a:hover,
.auth-footer a:hover {
    text-decoration: underline;
}

.auth-footer {
    font-size: 0.9rem;
    color: var(--gray-500);
    text-align: center;
}

.auth-note {
    background: #f8fafc;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 1rem;
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.4;
}

.public-hero {
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
    display: grid;
    gap: 1.25rem;
}

.public-hero h1 {
    font-size: 2.3rem;
    margin: 0;
    font-weight: 700;
    color: var(--gray-900);
}

.public-hero p {
    margin: 0;
    color: var(--gray-500);
    font-size: 1.05rem;
    line-height: 1.6;
}

.public-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.public-actions .btn {
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
}

.public-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    display: grid;
    gap: 1.25rem;
}

.public-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    text-align: left;
}

.public-grid h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.05rem;
}

.public-grid p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--gray-500);
    line-height: 1.5;
}

@media (max-width: 900px) {
    .auth-card {
        grid-template-columns: 1fr;
    }

    .auth-aside {
        padding: 2.5rem 2rem;
    }

    .auth-panel {
        padding: 2.5rem 2rem;
    }
}

@media (max-width: 640px) {
    .auth-wrapper {
        padding: 2rem 1rem;
    }

    .auth-panel {
        padding: 2rem 1.5rem;
    }

    .auth-links {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
}
