.auth-body {
    min-height: 100vh;
    background:
        radial-gradient(900px 600px at 110% -10%, rgba(201,169,97,0.12), transparent 55%),
        radial-gradient(800px 500px at -10% 110%, rgba(31,79,61,0.09), transparent 55%),
        var(--color-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.auth-logo {
    margin-bottom: 32px;
    font-size: 22px;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 48px rgba(31,79,61,0.10);
    overflow: hidden;
}

/* Tabs */
.auth-tabs {
    display: flex;
    border-bottom: 1px solid var(--color-border);
}
.auth-tab {
    flex: 1;
    padding: 18px;
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text-muted);
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color .2s, border-color .2s;
}
.auth-tab.active {
    color: var(--color-green);
    border-bottom-color: var(--color-green);
}

/* Form */
.auth-form {
    padding: 28px 32px 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-divider {
    text-align: center;
    font-size: 13px;
    color: var(--color-text-muted);
    margin: 4px 0;
    position: relative;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 38%;
    height: 1px;
    background: var(--color-border);
}
.auth-divider::before { left: 0; }
.auth-divider::after  { right: 0; }

/* Role picker */
.role-pick {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 4px 0;
}
.role-card {
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 14px 12px;
    text-align: center;
    cursor: pointer;
    transition: border-color .2s, background .2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.role-card:hover { border-color: var(--color-green-soft); background: var(--color-green-light); }
.role-card.active {
    border-color: var(--color-green);
    background: var(--color-green-light);
}
.role-card .role-icon {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--color-beige);
    display: grid; place-items: center;
    color: var(--color-green);
    margin-bottom: 2px;
}
.role-card.active .role-icon { background: var(--color-green); color: #fff; }
.role-card strong { font-size: 14px; font-weight: 600; color: var(--color-text); display: block; }
.role-card span   { font-size: 12px; color: var(--color-text-muted); line-height: 1.3; }

/* Password toggle */
.field-password { position: relative; }
.field-password input { padding-right: 46px; }
.pwd-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-muted);
    cursor: pointer;
    display: grid; place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
}
.pwd-toggle:hover { color: var(--color-green); }

.auth-footer {
    padding: 16px 32px;
    border-top: 1px solid var(--color-border);
    text-align: center;
    font-size: 13px;
    color: var(--color-text-muted);
    background: var(--color-beige);
}
.auth-footer a { color: var(--color-green); font-weight: 500; }

/* Touch target for auth tab buttons */
.auth-tab {
    min-height: 44px;
}

/* Role cards touch target */
.role-card {
    min-height: 44px;
}

@media (max-width: 480px) {
    .auth-body { padding: 24px 16px; justify-content: flex-start; padding-top: 32px; }
    .auth-logo { margin-bottom: 24px; font-size: 20px; }
    .auth-card { border-radius: var(--radius-md); }
    .auth-tabs { display: grid; grid-template-columns: 1fr 1fr; }
    .auth-tab { padding: 14px 10px; font-size: 14px; }
    .auth-form { padding: 20px 16px 22px; }
    .auth-footer { padding: 14px 16px; }
    .role-pick { grid-template-columns: 1fr 1fr; gap: 8px; }
    .role-card { padding: 12px 8px; }
    .role-card .role-icon { width: 36px; height: 36px; }
    .role-card strong { font-size: 13px; }
    .role-card span { font-size: 11px; }
}

#mullahDocumentsField[hidden] {
    display: none !important;
}

@media (max-width: 360px) {
    .role-pick { grid-template-columns: 1fr; }
}
