:root {
    --primary: #0d9488;
    --primary-dark: #0f766e;
    --primary-light: #5eead4;
    --accent: #0ea5e9;
    --bg-light: #f8fafc;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --card-bg: rgba(255, 255, 255, 0.97);
    --shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.12);
    --radius: 20px;
}

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

body.login-body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    min-height: 100vh;
    background: linear-gradient(135deg, #f0fdfa 0%, #ecfeff 40%, #f0f9ff 70%, #f8fafc 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-x: hidden;
    position: relative;
}

.bg-shapes {
    position: fixed;
    inset: 0;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.55;
    animation: float 12s ease-in-out infinite;
}

.shape-1 { width: 420px; height: 420px; background: #99f6e4; top: -120px; left: -100px; }
.shape-2 { width: 320px; height: 320px; background: #a5f3fc; bottom: -60px; right: -40px; animation-delay: -4s; }
.shape-3 { width: 220px; height: 220px; background: #fde68a; top: 35%; right: 18%; animation-delay: -8s; }
.shape-4 { width: 260px; height: 260px; background: #bbf7d0; bottom: 18%; left: 12%; animation-delay: -2s; }

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(28px, -28px) scale(1.05); }
    66% { transform: translate(-18px, 18px) scale(0.96); }
}

.login-wrapper {
    display: flex;
    max-width: 920px;
    width: 100%;
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.85);
}

.login-card {
    flex: 1;
    padding: 44px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-header { text-align: center; margin-bottom: 28px; }

.logo-icon {
    width: 68px; height: 68px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 18px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 14px;
    box-shadow: 0 10px 25px rgba(13, 148, 136, 0.3);
}
.logo-icon i { font-size: 30px; color: #fff; }

.login-header h1 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 26px; font-weight: 700;
    color: var(--text-dark); margin-bottom: 4px;
}
.tagline { color: var(--text-muted); font-size: 14px; margin-bottom: 6px; }
.instansi { font-size: 13px; color: var(--primary); font-weight: 600; }

.login-form .form-control {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 16px;
    height: 56px;
    font-size: 15px;
    transition: all 0.2s ease;
    background: #fff;
}
.login-form .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.12);
}
.login-form .form-floating > label { color: var(--text-muted); padding-left: 16px; }

.captcha-box {
    height: 56px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    background: #f0fdfa;
}
.captcha-box img { width: 100%; height: 100%; object-fit: cover; }
.captcha-box:hover { border-color: var(--primary); }

.btn-login {
    height: 54px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.5px;
    color: #fff;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(13, 148, 136, 0.3);
}
.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(13, 148, 136, 0.4);
    background: linear-gradient(135deg, var(--primary-dark), #115e59);
    color: #fff;
}
.btn-login:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.login-footer {
    text-align: center;
    margin-top: 28px;
    color: var(--text-muted);
    font-size: 13px;
}
.login-footer small { font-size: 11px; opacity: 0.8; }

.login-side {
    width: 360px;
    background: linear-gradient(160deg, #0d9488 0%, #0f766e 55%, #115e59 100%);
    color: #fff;
    padding: 44px 32px;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.login-side::before {
    content: '';
    position: absolute;
    top: -50%; right: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
}
.side-content { position: relative; z-index: 1; }
.side-content h2 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 24px; font-weight: 700;
    margin-bottom: 12px; line-height: 1.3;
}
.side-content p { font-size: 14px; opacity: 0.9; line-height: 1.6; margin-bottom: 24px; }
.feature-list { list-style: none; padding: 0; }
.feature-list li {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 12px; font-size: 14px; font-weight: 500;
}
.feature-list i { color: #fde68a; font-size: 15px; }

.alert { border-radius: 12px; border: none; font-size: 14px; }

@media (max-width: 991px) {
    .login-card { padding: 36px 28px; }
}
@media (max-width: 575px) {
    .login-card { padding: 28px 20px; }
    .login-header h1 { font-size: 22px; }
}
