/* =====================================================================
   auth.css
   Tema: BLUE CRYSTAL GLASS UI
   Dipakai untuk halaman Login Multi Role
   ===================================================================== */

:root {
    --deep-navy: #061A40;
    --crystal-blue: #0B5ED7;
    --sky-blue: #48CAE4;
    --gold-accent: #D4AF37;
    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-shadow: rgba(6, 26, 64, 0.45);
    --text-light: #F4F8FB;
    --text-muted: #C9D6E3;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    background:
        radial-gradient(circle at 15% 20%, rgba(72, 202, 228, 0.35), transparent 45%),
        radial-gradient(circle at 85% 80%, rgba(212, 175, 55, 0.18), transparent 40%),
        linear-gradient(135deg, var(--deep-navy) 0%, #0a2a5e 45%, var(--crystal-blue) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    overflow: hidden;
    position: relative;
}

/* Bola-bola cahaya dekoratif ala kaca kristal */
body::before,
body::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    z-index: 0;
}

body::before {
    width: 320px;
    height: 320px;
    background: rgba(72, 202, 228, 0.35);
    top: -80px;
    left: -80px;
    animation: floatSlow 9s ease-in-out infinite;
}

body::after {
    width: 260px;
    height: 260px;
    background: rgba(212, 175, 55, 0.25);
    bottom: -60px;
    right: -60px;
    animation: floatSlow 11s ease-in-out infinite reverse;
}

@keyframes floatSlow {
    0%, 100% { transform: translateY(0) translateX(0); }
    50%      { transform: translateY(25px) translateX(15px); }
}

.auth-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 960px;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 0;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 28px;
    box-shadow: 0 25px 60px var(--glass-shadow), inset 0 1px 0 rgba(255,255,255,0.25);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    overflow: hidden;
}

.auth-brand {
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: var(--text-light);
    background: linear-gradient(160deg, rgba(11,94,215,0.35), rgba(6,26,64,0.55));
    border-right: 1px solid var(--glass-border);
}

.auth-brand .logo-circle {
    width: 68px;
    height: 68px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--sky-blue), var(--crystal-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: 700;
    color: #fff;
    box-shadow: 0 10px 25px rgba(11,94,215,0.5), inset 0 -3px 6px rgba(0,0,0,0.15);
    margin-bottom: 22px;
}
.auth-brand .logo-circle-img { padding: 10px; }
.auth-brand .logo-circle img { width: 100%; height: 100%; object-fit: contain; }

.auth-brand h1 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 0.3px;
}

.auth-brand p {
    color: var(--text-muted);
    font-size: 14.5px;
    line-height: 1.6;
    margin-bottom: 26px;
}

.auth-brand .tagline {
    font-style: italic;
    color: var(--gold-accent);
    font-size: 15px;
    border-left: 3px solid var(--gold-accent);
    padding-left: 14px;
}

.auth-form-side {
    padding: 48px 42px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(255,255,255,0.06);
}

.auth-form-side h2 {
    color: var(--text-light);
    font-size: 22px;
    margin-bottom: 6px;
}

.auth-form-side .subtitle {
    color: var(--text-muted);
    font-size: 13.5px;
    margin-bottom: 26px;
}

.role-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    background: rgba(255,255,255,0.08);
    padding: 6px;
    border-radius: 14px;
    border: 1px solid var(--glass-border);
}

.role-tabs label {
    flex: 1;
    text-align: center;
    padding: 9px 6px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-muted);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.role-tabs input[type="radio"] {
    display: none;
}

.role-tabs input[type="radio"]:checked + label {
    background: linear-gradient(135deg, var(--sky-blue), var(--crystal-blue));
    color: #fff;
    box-shadow: 0 6px 16px rgba(11,94,215,0.45);
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 7px;
    font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="password"] {
    width: 100%;
    padding: 13px 16px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    background: rgba(255,255,255,0.12);
    color: var(--text-light);
    font-size: 14.5px;
    outline: none;
    transition: all 0.25s ease;
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.15);
}

.form-group input::placeholder {
    color: rgba(244,248,251,0.5);
}

.form-group input:focus {
    border-color: var(--sky-blue);
    box-shadow: 0 0 0 3px rgba(72,202,228,0.25), inset 0 2px 6px rgba(0,0,0,0.15);
    background: rgba(255,255,255,0.18);
}

.btn-login {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--sky-blue), var(--crystal-blue));
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.3px;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(11,94,215,0.45);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-top: 6px;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(11,94,215,0.6);
}

.btn-login:active {
    transform: translateY(0);
}

.alert {
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 13.5px;
    margin-bottom: 18px;
    border: 1px solid transparent;
}

.alert-error {
    background: rgba(220, 53, 69, 0.18);
    border-color: rgba(220, 53, 69, 0.4);
    color: #ffd7dc;
}

.alert-success {
    background: rgba(25, 135, 84, 0.18);
    border-color: rgba(25, 135, 84, 0.4);
    color: #c8f5dd;
}

.back-link {
    display: inline-block;
    margin-top: 22px;
    color: var(--text-muted);
    font-size: 13px;
    text-decoration: none;
}

.back-link:hover {
    color: var(--sky-blue);
}

@media (max-width: 800px) {
    .auth-wrapper {
        grid-template-columns: 1fr;
    }
    .auth-brand {
        border-right: none;
        border-bottom: 1px solid var(--glass-border);
        padding: 34px 30px;
    }
    .auth-form-side {
        padding: 34px 30px;
    }
}

@media (max-width: 480px) {
    body { padding: 16px; align-items: flex-start; padding-top: 40px; }
    .auth-wrapper { border-radius: 20px; }
    .auth-brand { padding: 26px 20px; }
    .auth-brand .logo-circle { width: 54px; height: 54px; font-size: 24px; }
    .auth-brand h1 { font-size: 21px; }
    .auth-brand p { font-size: 13px; }
    .auth-form-side { padding: 26px 20px; }
    .auth-form-side h2 { font-size: 19px; }
    .role-tabs { flex-direction: column; gap: 6px; }
    .role-tabs label { padding: 10px; }
}
