.auth-container { max-width: 500px; margin: 0 auto; }
.login-portal { max-width: 720px; }

.login-portal-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.login-portal-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    color: var(--text);
    transition: transform 0.16s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.login-portal-card:hover,
.login-portal-card:focus-visible {
    transform: translateY(-2px);
    border-color: var(--brand);
    box-shadow: 0 12px 26px var(--brand-ring);
    outline: none;
}

.login-portal-icon {
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    background: var(--brand-soft);
    color: var(--brand);
}

.login-portal-icon svg { width: 24px; height: 24px; }

.login-portal-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.login-portal-text strong { font-size: 1.02rem; color: var(--text); }
.login-portal-text small { font-size: 0.82rem; color: var(--text-muted); line-height: 1.35; }

@media (max-width: 640px) {
    .login-portal-grid { grid-template-columns: 1fr; }
}
.auth-header { text-align: center; margin-bottom: 30px; }
.auth-header h1 { font-size: 1.8em; }

.auth-form {
    background: var(--surface);
    padding: 30px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.auth-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
}

.auth-footer a { color: var(--brand); font-weight: 600; }

.auth-note {
    background: var(--brand-soft);
    border: 1px solid #99f6e4;
    color: #134e4a;
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    margin-bottom: 16px;
    font-size: 0.92em;
}

.field-note {
    font-size: 0.85em;
    color: var(--text-muted);
    margin-top: 6px;
}

.role-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.role-option {
    display: block;
    cursor: pointer;
}

.role-option input {
    display: none;
}

.role-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    transition: all 0.2s ease;
    min-height: 112px;
}

.role-option:hover .role-card {
    border-color: var(--brand);
    box-shadow: 0 4px 14px var(--brand-ring);
}

.role-option input:checked + .role-card {
    border-color: var(--brand);
    background: var(--brand-soft);
    box-shadow: 0 4px 14px var(--brand-ring);
}

.role-card-disabled {
    opacity: 0.65;
    background: var(--surface-2);
}

.role-title {
    font-weight: 700;
    color: var(--text);
}

.role-copy {
    font-size: 0.88em;
    color: var(--text-muted);
    line-height: 1.45;
}

.full-width-btn {
    width: 100%;
}

.demo-credentials {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 15px;
    margin-bottom: 20px;
    font-size: 0.9em;
}

.demo-credentials h4 { color: var(--brand-strong); margin-bottom: 8px; }
.demo-credentials code { background: var(--surface); padding: 2px 6px; border-radius: 4px; }

.divider {
    display: flex;
    align-items: center;
    margin: 25px 0;
    color: var(--text-muted);
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border);
}

.divider span {
    padding: 0 15px;
    font-size: 0.9em;
}

.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 12px 20px;
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 1em;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-google:hover {
    border-color: var(--brand);
    background: var(--brand-soft);
    box-shadow: 0 2px 8px var(--brand-ring);
}

.btn-google svg {
    width: 20px;
    height: 20px;
}

@media (max-width: 640px) {
    .role-grid {
        grid-template-columns: 1fr;
    }
}
