:root {
    --brand: #0d9488;
    --brand-dark: #0f766e;
    --brand-soft: #ecfdf5;
    --text: #0f172a;
    --muted: #64748b;
    --border: #e2e8f0;
    --card: #ffffff;
    --bg: #f8fafc;
}

* { box-sizing: border-box; }

body.auth-body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: var(--text);
    background: var(--bg);
}

.auth-shell { min-height: 100vh; }

.auth-form-col {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2.25rem 2rem 1.75rem;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.06);
}

.auth-logo {
    display: block;
    margin: 0 auto 1.5rem;
    max-height: 44px;
    width: auto;
    height: auto;
}

.auth-card h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: .35rem;
    text-align: center;
}

.auth-card .subtitle {
    color: var(--muted);
    text-align: center;
    margin-bottom: 1.75rem;
}

.auth-card .form-group label {
    font-weight: 600;
    font-size: .85rem;
    margin-bottom: .4rem;
}

.auth-card .form-control {
    height: 44px;
    border-radius: 10px;
    border: 1px solid var(--border);
    padding: .65rem .9rem;
    font-size: .95rem;
}

.auth-card .form-control:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.12);
}

.auth-card .input-group-text {
    border-radius: 0 10px 10px 0;
    border: 1px solid var(--border);
    border-left: 0;
    background: #fff;
    cursor: pointer;
}

.auth-card .btn-brand {
    background: var(--brand);
    border: none;
    color: #fff;
    height: 44px;
    border-radius: 10px;
    font-weight: 600;
    width: 100%;
}

.auth-card .btn-brand:hover {
    background: var(--brand-dark);
    color: #fff;
}

.auth-link {
    color: var(--brand);
    font-size: .85rem;
    font-weight: 600;
    text-decoration: none;
}

.auth-link:hover {
    color: var(--brand-dark);
    text-decoration: none;
}

.auth-footer {
    margin-top: 1.75rem;
    text-align: center;
    color: var(--muted);
    font-size: .8rem;
}

.auth-back {
    display: block;
    text-align: center;
    margin-top: 1rem;
}

.auth-visual-col {
    position: relative;
    display: none;
    padding: 1.5rem 1.5rem 1.5rem 0;
}

@media (min-width: 992px) {
    .auth-visual-col { display: flex; align-items: stretch; }
}

.auth-visual-panel {
    position: relative;
    flex: 1;
    border-radius: 28px;
    overflow: hidden;
    background: linear-gradient(145deg, #0f766e 0%, #134e4a 45%, #0f172a 100%);
    color: #fff;
    padding: 3rem 2.75rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-visual-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../css/promo-bg.svg') center/cover no-repeat;
    opacity: .35;
}

.auth-visual-content {
    position: relative;
    z-index: 1;
    max-width: 520px;
}

.auth-visual-content h2 {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.auth-visual-content p {
    color: rgba(255, 255, 255, 0.82);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.75rem;
}

.auth-feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
}

.auth-feature-list li {
    display: flex;
    align-items: center;
    gap: .65rem;
    margin-bottom: .75rem;
    color: rgba(255, 255, 255, 0.92);
    font-size: .95rem;
}

.auth-feature-list li::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #5eead4;
    flex-shrink: 0;
}

.auth-hero-image {
    width: 100%;
    max-width: 520px;
    border-radius: 16px;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.28);
}

body.auth-body.dark-mode {
    --text: #f8fafc;
    --muted: #94a3b8;
    --border: #334155;
    --card: #1e293b;
    --bg: #0f172a;
}

body.auth-body.dark-mode .input-group-text {
    background: var(--card);
    color: var(--muted);
}

.auth-card .invalid-feedback {
    display: block;
    font-size: .82rem;
    margin-top: .35rem;
}
