/* ============================================
   CAT-TEST — Halaman Auth (Index, Login)
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
    --auth-bg: #0f172a;
    --auth-surface: #1e293b;
    --auth-accent: #3b82f6;
    --auth-accent-hover: #2563eb;
    --auth-success: #10b981;
    --auth-success-hover: #059669;
    --auth-warning: #f59e0b;
    --auth-text: #f8fafc;
    --auth-text-muted: #94a3b8;
    --auth-border: rgba(255,255,255,0.08);
    --auth-radius: 16px;
    --auth-radius-sm: 12px;
    --auth-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
    --auth-transition: 0.25s ease;
    --auth-transition-slow: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

body.auth-page {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    min-height: 100vh;
    margin: 0;
    background: var(--auth-bg);
    color: var(--auth-text);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    box-sizing: border-box;
}

.auth-page .auth-bg-pattern {
    position: fixed;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(59, 130, 246, 0.25), transparent),
        radial-gradient(ellipse 60% 40% at 100% 50%, rgba(16, 185, 129, 0.12), transparent),
        radial-gradient(ellipse 60% 40% at 0% 80%, rgba(59, 130, 246, 0.1), transparent);
    pointer-events: none;
}

@keyframes authFadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes authFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes authShine {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes authFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.auth-page .auth-wrap {
    position: relative;
    width: 100%;
    max-width: 1100px;
    animation: authFadeIn 0.5s ease;
}

/* Form login di tengah (login-admin & login-siswa) */
.auth-page .auth-wrap.auth-wrap--center {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: none;
}

.auth-page .password-field {
    position: relative;
}

.auth-page .password-field .form-control {
    padding-right: 3rem;
}

.auth-page .password-toggle {
    position: absolute;
    top: 50%;
    right: 0.65rem;
    display: grid;
    width: 2rem;
    height: 2rem;
    padding: 0;
    place-items: center;
    transform: translateY(-50%);
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #64748b;
    cursor: pointer;
}

.auth-page .password-toggle:hover {
    color: #1e293b;
}

.auth-page .password-toggle:focus-visible {
    outline: 2px solid var(--auth-accent);
    outline-offset: 2px;
}

/* ---- Landing (index) - konsep baru: satu blok tengah ---- */
.landing-center {
    text-align: center;
    padding: 2.5rem 2rem;
    background: var(--auth-surface);
    border-radius: var(--auth-radius);
    box-shadow: var(--auth-shadow);
    border: 1px solid var(--auth-border);
    width: 100%;
    max-width: 420px;
}

.landing-center-logo {
    max-height: 72px;
    width: auto;
    border-radius: var(--auth-radius-sm);
    margin-bottom: 1.25rem;
}

.landing-center-logo-placeholder {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.25rem;
    background: rgba(59, 130, 246, 0.2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--auth-accent);
}

.landing-center-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.25rem 0;
    letter-spacing: -0.02em;
}

.landing-center-subtitle {
    font-size: 0.95rem;
    color: var(--auth-text-muted);
    margin: 0 0 1.5rem 0;
}

.landing-center-tagline {
    font-size: 0.9rem;
    color: var(--auth-text-muted);
    margin: 0 0 1.25rem 0;
}

.landing-center-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.landing-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-radius: var(--auth-radius-sm);
    text-decoration: none;
    text-align: left;
    border: 1px solid var(--auth-border);
    transition: border-color var(--auth-transition), transform var(--auth-transition), box-shadow var(--auth-transition);
}

.landing-btn:hover {
    transform: translateY(-2px);
    color: inherit;
}

.landing-btn i {
    font-size: 1.5rem;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.landing-btn span {
    display: block;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.15rem;
}

.landing-btn small {
    display: block;
    font-size: 0.8rem;
    opacity: 0.85;
    font-weight: 400;
}

.landing-btn--siswa {
    background: rgba(16, 185, 129, 0.12);
    color: #6ee7b7;
    border-color: rgba(16, 185, 129, 0.3);
}

.landing-btn--siswa i {
    background: var(--auth-success);
    color: #fff;
}

.landing-btn--siswa:hover {
    border-color: var(--auth-success);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.25);
}

.landing-btn--admin {
    background: rgba(59, 130, 246, 0.12);
    color: #93c5fd;
    border-color: rgba(59, 130, 246, 0.3);
}

.landing-btn--admin i {
    background: var(--auth-accent);
    color: #fff;
}

.landing-btn--admin:hover {
    border-color: var(--auth-accent);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.25);
}

.landing-center-footer {
    margin: 1.5rem 0 0 0;
    font-size: 0.8rem;
    color: var(--auth-text-muted);
}

.landing-center--index {
    max-width: 560px;
}

.landing-center-header {
    margin-bottom: 1.5rem;
}

/* Daftar instansi (index) */
.instansi-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.instansi-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--auth-border);
    border-radius: var(--auth-radius-sm);
    padding: 1rem;
}

.instansi-card-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.instansi-card-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 10px;
}

.instansi-card-logo-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(59, 130, 246, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--auth-accent);
    font-size: 1rem;
}

.instansi-card-nama {
    font-weight: 600;
    font-size: 1rem;
}

.instansi-card-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.instansi-card-actions .landing-btn {
    flex: 1;
    min-width: 140px;
}

.landing-center-footer--superadmin {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--auth-border);
}

.landing-center-footer-label {
    color: var(--auth-text-muted);
    font-size: 0.85rem;
}

.btn-superadmin {
    font-size: 0.85rem;
}

.btn-superadmin:hover {
    color: var(--auth-bg);
    background: var(--auth-text);
    border-color: var(--auth-text);
}

/* ========== Index: Login Admin Umum (modern, animatif) ========== */
.auth-page--index .auth-bg-pattern {
    animation: authFadeIn 1s ease;
}

.auth-index-card {
    width: 100%;
    max-width: 420px;
    background: var(--auth-surface);
    border-radius: var(--auth-radius);
    overflow: hidden;
    box-shadow: var(--auth-shadow);
    border: 1px solid var(--auth-border);
    animation: authFadeInUp 0.6s var(--auth-transition-slow) both;
    transition: transform var(--auth-transition), box-shadow var(--auth-transition);
}

.auth-index-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 32px 64px -16px rgba(0, 0, 0, 0.5);
}

.auth-index-card__header {
    padding: 2.25rem 2rem 1.75rem;
    text-align: center;
    border-bottom: 1px solid var(--auth-border);
    animation: authFadeInUp 0.5s 0.15s var(--auth-transition-slow) both;
}

.auth-index-card__logo {
    max-height: 64px;
    width: auto;
    border-radius: var(--auth-radius-sm);
    margin-bottom: 1rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
    transition: transform var(--auth-transition);
}

.auth-index-card:hover .auth-index-card__logo {
    transform: scale(1.02);
}

.auth-index-card__logo-placeholder {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(59, 130, 246, 0.1));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--auth-accent);
    animation: authFloat 4s ease-in-out infinite;
}

.auth-index-card__title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.25rem 0;
    letter-spacing: -0.02em;
    animation: authFadeInUp 0.5s 0.2s var(--auth-transition-slow) both;
}

.auth-index-card__subtitle {
    font-size: 0.95rem;
    color: var(--auth-text-muted);
    margin: 0 0 0.75rem 0;
    animation: authFadeInUp 0.5s 0.25s var(--auth-transition-slow) both;
}

.auth-index-card__badge {
    display: inline-block;
    font-size: 0.75rem;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(59, 130, 246, 0.15));
    color: #93c5fd;
    border: 1px solid rgba(59, 130, 246, 0.3);
    animation: authFadeInUp 0.5s 0.3s var(--auth-transition-slow) both;
}

.auth-index-card__body {
    padding: 1.75rem 2rem 2rem;
    animation: authFadeInUp 0.5s 0.35s var(--auth-transition-slow) both;
}

.auth-index-card__alert {
    border-radius: 10px;
    border: none;
    margin-bottom: 1rem;
    animation: authFadeIn 0.3s ease;
}

.auth-index-card__form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.auth-index-card__field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.auth-index-card__label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--auth-text-muted);
}

.auth-index-card__input {
    width: 100%;
    padding: 0.85rem 1rem;
    font-size: 1rem;
    color: var(--auth-text);
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--auth-border);
    border-radius: 12px;
    transition: border-color var(--auth-transition), box-shadow var(--auth-transition), background var(--auth-transition);
}

.auth-index-card__input::placeholder {
    color: var(--auth-text-muted);
    opacity: 0.8;
}

.auth-index-card__input:focus {
    outline: none;
    border-color: var(--auth-accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
    background: rgba(15, 23, 42, 0.8);
}

.auth-index-card__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.95rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, var(--auth-accent), var(--auth-accent-hover));
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: transform var(--auth-transition), box-shadow var(--auth-transition), opacity var(--auth-transition);
    margin-top: 0.25rem;
}

.auth-index-card__submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(59, 130, 246, 0.4);
    color: #fff;
}

.auth-index-card__submit:active {
    transform: translateY(0);
}

/* ========== Multi-role: Daftar instansi + 3 aksi ========== */
.auth-page--multi-role .auth-wrap--multi {
    max-width: 640px;
    padding: 1rem 0;
}

.multi-role-header {
    margin-bottom: 1.75rem;
    animation: authFadeInUp 0.5s var(--auth-transition-slow) both;
}

.multi-role-header__back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--auth-text-muted);
    font-size: 0.9rem;
    text-decoration: none;
    margin-bottom: 1rem;
    transition: color var(--auth-transition), transform var(--auth-transition);
}

.multi-role-header__back:hover {
    color: var(--auth-text);
    transform: translateX(-2px);
}

.multi-role-header__brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.multi-role-header__logo {
    max-height: 52px;
    width: auto;
    border-radius: var(--auth-radius-sm);
}

.multi-role-header__logo-placeholder {
    width: 52px;
    height: 52px;
    border-radius: var(--auth-radius-sm);
    background: rgba(59, 130, 246, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--auth-accent);
    font-size: 1.5rem;
}

.multi-role-header__title {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 0.15rem 0;
}

.multi-role-header__subtitle {
    font-size: 0.9rem;
    color: var(--auth-text-muted);
    margin: 0;
}

.multi-role-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.multi-role-card {
    background: var(--auth-surface);
    border: 1px solid var(--auth-border);
    border-radius: var(--auth-radius);
    padding: 1.25rem;
    box-shadow: var(--auth-shadow);
    animation: authFadeInUp 0.5s var(--auth-transition-slow) both;
    animation-delay: var(--delay, 0s);
    transition: transform var(--auth-transition), border-color var(--auth-transition), box-shadow var(--auth-transition);
}

.multi-role-card:hover {
    transform: translateY(-3px);
    border-color: rgba(59, 130, 246, 0.25);
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.35);
}

.multi-role-card__brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.multi-role-card__logo {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 12px;
}

.multi-role-card__logo-placeholder {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(59, 130, 246, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--auth-accent);
    font-size: 1.1rem;
}

.multi-role-card__nama {
    font-weight: 600;
    font-size: 1.1rem;
}

.multi-role-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.multi-role-card__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 10px;
    text-decoration: none;
    border: 1px solid transparent;
    transition: transform var(--auth-transition), box-shadow var(--auth-transition), border-color var(--auth-transition);
}

.multi-role-card__btn:hover {
    transform: translateY(-2px);
    color: inherit;
}

.multi-role-card__btn--siswa {
    background: rgba(16, 185, 129, 0.15);
    color: #6ee7b7;
    border-color: rgba(16, 185, 129, 0.35);
}

.multi-role-card__btn--siswa:hover {
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
}

.multi-role-card__btn--verifikator {
    background: rgba(245, 158, 11, 0.15);
    color: #fcd34d;
    border-color: rgba(245, 158, 11, 0.35);
}

.multi-role-card__btn--verifikator:hover {
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.3);
}

.multi-role-card__btn--admin {
    background: rgba(59, 130, 246, 0.15);
    color: #93c5fd;
    border-color: rgba(59, 130, 246, 0.35);
}

.multi-role-card__btn--admin:hover {
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
}

.multi-role-empty {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--auth-surface);
    border-radius: var(--auth-radius);
    border: 1px solid var(--auth-border);
    animation: authFadeInUp 0.5s var(--auth-transition-slow) both;
}

.multi-role-empty__icon {
    font-size: 3rem;
    color: var(--auth-text-muted);
    margin-bottom: 1rem;
    opacity: 0.6;
}

.multi-role-empty__text {
    color: var(--auth-text-muted);
    margin-bottom: 1.5rem;
}

.multi-role-empty__btn {
    display: inline-flex;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    color: #fff;
}

.auth-login-header .role-badge--verifikator {
    background: rgba(245, 158, 11, 0.2);
    color: #fcd34d;
}

/* ---- Landing (konsep lama, tidak dipakai) ---- */
.auth-landing {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
    align-items: stretch;
    background: var(--auth-surface);
    border-radius: var(--auth-radius);
    overflow: hidden;
    box-shadow: var(--auth-shadow);
    border: 1px solid var(--auth-border);
}

@media (max-width: 991px) {
    .auth-landing { grid-template-columns: 1fr; }
}

.auth-landing-brand {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-landing-brand .brand-logo {
    max-height: 64px;
    width: auto;
    border-radius: var(--auth-radius-sm);
    margin-bottom: 1.25rem;
}

.auth-landing-brand .brand-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 0.25rem 0;
    letter-spacing: -0.02em;
}

.auth-landing-brand .brand-subtitle {
    font-size: 1rem;
    color: var(--auth-text-muted);
    margin: 0 0 1rem 0;
}

.auth-landing-brand .tagline {
    font-size: 0.9rem;
    color: var(--auth-text-muted);
    margin: 0;
}

.auth-landing-brand .carousel-container {
    margin-top: 1.5rem;
    border-radius: var(--auth-radius-sm);
    overflow: hidden;
    border: 1px solid var(--auth-border);
}

.auth-landing-brand .carousel-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.auth-landing-brand .auth-footer-note {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: var(--auth-text-muted);
}

.auth-landing-options {
    padding: 2rem;
    background: rgba(15, 23, 42, 0.5);
    border-left: 1px solid var(--auth-border);
}

@media (max-width: 991px) {
    .auth-landing-options { border-left: none; border-top: 1px solid var(--auth-border); }
}

.auth-landing-options h2 {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 0.35rem 0;
}

.auth-landing-options .subtitle {
    font-size: 0.9rem;
    color: var(--auth-text-muted);
    margin-bottom: 1.5rem;
}

.auth-option-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.25rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--auth-border);
    border-radius: var(--auth-radius-sm);
    margin-bottom: 1rem;
    transition: border-color var(--auth-transition), background var(--auth-transition);
}

.auth-option-card:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(59, 130, 246, 0.3);
}

.auth-option-card .option-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.auth-option-card .option-icon.siswa {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
}

.auth-option-card .option-icon.admin {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
}

.auth-option-card .option-text .title {
    font-weight: 600;
    margin: 0 0 0.2rem 0;
    font-size: 1rem;
}

.auth-option-card .option-text .desc {
    font-size: 0.85rem;
    color: var(--auth-text-muted);
    margin: 0;
}

.auth-option-card .btn {
    border-radius: 10px;
    padding: 0.5rem 1.25rem;
    font-weight: 500;
    font-size: 0.9rem;
    transition: transform var(--auth-transition), box-shadow var(--auth-transition);
}

.auth-option-card .btn:hover {
    transform: translateY(-1px);
}

.auth-option-card .btn-siswa {
    background: var(--auth-success);
    border-color: var(--auth-success);
    color: #fff;
}

.auth-option-card .btn-siswa:hover {
    background: var(--auth-success-hover);
    border-color: var(--auth-success-hover);
    color: #fff;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.35);
}

.auth-option-card .btn-admin {
    background: var(--auth-accent);
    border-color: var(--auth-accent);
    color: #fff;
}

.auth-option-card .btn-admin:hover {
    background: var(--auth-accent-hover);
    border-color: var(--auth-accent-hover);
    color: #fff;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.35);
}

.auth-helper {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: var(--auth-text-muted);
}

/* ---- Login card (admin & siswa) ---- */
.auth-login-card {
    width: 100%;
    max-width: 420px;
    background: var(--auth-surface);
    border-radius: var(--auth-radius);
    overflow: hidden;
    box-shadow: var(--auth-shadow);
    border: 1px solid var(--auth-border);
}

.auth-login-header {
    padding: 2rem 2rem 1.5rem;
    text-align: center;
    border-bottom: 1px solid var(--auth-border);
}

.auth-login-header .brand-logo {
    max-height: 56px;
    width: auto;
    border-radius: var(--auth-radius-sm);
    margin-bottom: 1rem;
}

.auth-login-header h1 {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 0.25rem 0;
}

.auth-login-header .app-name {
    font-size: 0.95rem;
    color: var(--auth-text-muted);
    margin: 0 0 0.5rem 0;
}

.auth-login-header .role-badge {
    display: inline-block;
    font-size: 0.75rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
}

.auth-login-header .role-badge.siswa {
    background: rgba(16, 185, 129, 0.2);
    color: #6ee7b7;
}

.auth-login-body {
    padding: 1.75rem 2rem 2rem;
}

.auth-login-body .form-label {
    font-weight: 500;
    color: var(--auth-text-muted);
    font-size: 0.9rem;
}

.auth-login-body .form-control {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--auth-border);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    color: var(--auth-text);
    font-size: 0.95rem;
}

.auth-login-body .form-control::placeholder {
    color: var(--auth-text-muted);
    opacity: 0.8;
}

.auth-login-body .form-control:focus {
    background: rgba(15, 23, 42, 0.8);
    border-color: var(--auth-accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
    color: var(--auth-text);
}

.auth-login-body .login-captcha .form-control {
    min-height: 44px;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.auth-login-body .form-select {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--auth-border);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    color: var(--auth-text);
}

.auth-login-body .form-select:focus {
    border-color: var(--auth-accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.auth-login-body .form-select option {
    background: #1e293b;
    color: #f8fafc;
}

.auth-login-body .alert {
    border-radius: 10px;
    border: none;
}

.auth-login-body .btn-back {
    color: var(--auth-text-muted);
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    transition: color var(--auth-transition);
}

.auth-login-body .btn-back:hover {
    color: var(--auth-text);
}

.auth-login-body .btn-login {
    width: 100%;
    padding: 0.85rem 1.5rem;
    font-weight: 600;
    border-radius: 10px;
    border: none;
    font-size: 1rem;
    transition: transform var(--auth-transition), box-shadow var(--auth-transition);
}

.auth-login-body .btn-login.btn-primary {
    background: var(--auth-accent);
}

.auth-login-body .btn-login.btn-primary:hover {
    background: var(--auth-accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.35);
}

.auth-login-body .btn-login.btn-success {
    background: var(--auth-success);
}

.auth-login-body .btn-login.btn-success:hover {
    background: var(--auth-success-hover);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.35);
}

.auth-login-body .auth-switch {
    text-align: center;
    margin-top: 1.25rem;
    font-size: 0.9rem;
    color: var(--auth-text-muted);
}

.auth-login-body .auth-switch a {
    color: var(--auth-accent);
    text-decoration: none;
    font-weight: 500;
}

.auth-login-body .auth-switch a:hover {
    text-decoration: underline;
}

@media (max-width: 991.98px) {
    body.auth-page {
        min-height: 100vh;
        min-height: 100svh;
        padding: 1rem;
    }

    .landing-center {
        padding: 1.7rem 1.4rem;
    }

    .auth-page .auth-login-header {
        padding: 1.55rem 1.4rem 1.2rem;
    }

    .auth-page .auth-login-body {
        padding: 1.3rem 1.4rem 1.5rem;
    }

    .auth-page .auth-option-card {
        gap: 0.75rem;
        padding: 1rem;
    }

    .auth-page .auth-option-card .btn {
        min-height: 44px;
    }
}

@media (max-width: 575.98px) {
    body.auth-page {
        align-items: flex-start;
        padding: 0.65rem;
        overflow-y: auto;
    }

    .auth-page .auth-wrap {
        width: 100%;
        margin: auto;
    }

    .landing-center,
    .auth-page .auth-login-card,
    .auth-page .auth-index-card {
        border-radius: 14px;
    }

    .landing-center {
        padding: 1.2rem 0.9rem;
    }

    .landing-center--index {
        max-width: 100%;
    }

    .landing-center-logo {
        max-height: 56px;
        margin-bottom: 0.8rem;
    }

    .landing-center-title {
        font-size: 1.25rem;
    }

    .landing-center-subtitle {
        margin-bottom: 1rem;
    }

    .auth-page .auth-login-header {
        padding: 1.15rem 1rem 0.95rem;
    }

    .auth-page .auth-login-header h1 {
        font-size: 1.2rem;
    }

    .auth-page .auth-login-body {
        padding: 1rem;
    }

    .auth-page .auth-login-body .form-control,
    .auth-page .auth-login-body .form-select {
        min-height: 44px;
        font-size: 16px;
    }

    .auth-page .auth-login-body .btn-login {
        min-height: 46px;
        padding: 0.7rem 1rem;
    }

    .landing-btn {
        gap: 0.7rem;
        padding: 0.8rem;
    }

    .landing-btn i {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .landing-btn span {
        font-size: 0.92rem;
    }

    .landing-btn small {
        font-size: 0.75rem;
    }

    .instansi-card {
        padding: 0.85rem;
    }

    .instansi-card-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.45rem;
    }

    .instansi-card-actions .landing-btn {
        min-width: 0;
        margin: 0;
    }

    .portal-card__actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.35rem;
    }

    .portal-card__link {
        min-height: 40px;
        padding: 0.35rem;
        font-size: 0.72rem;
    }

    .registration-header {
        font-size: 0.78rem;
    }

    .registration-content {
        font-size: 0.75rem;
    }

    .registration-note {
        font-size: 0.72rem;
    }
}
