/* ============================================================
   login.css — Styles for Login Page
   ============================================================ */

html,
body {
    height: 100%;
    margin: 0;
}

body.login-page {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 60%, #1570EF 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
}

.login-wrapper {
    display: flex;
    width: 900px;
    max-width: 95vw;
    min-height: 520px;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
    animation: fadeInUp 0.4s ease;
}

/* LEFT PANEL — branding */
.login-brand-panel {
    flex: 1;
    background: linear-gradient(160deg, #1570EF 0%, #0c4fc4 100%);
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.login-brand-panel::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    top: -80px;
    right: -80px;
}

.login-brand-panel::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    bottom: -60px;
    left: -40px;
}

.login-brand-panel .brand-icon {
    font-size: 3rem;
    margin-bottom: 18px;
    position: relative;
    z-index: 1;
}

.login-brand-panel h1 {
    font-size: 1.7rem;
    font-weight: 800;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.login-brand-panel p {
    font-size: 0.9rem;
    opacity: 0.8;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.login-brand-panel .brand-tag {
    margin-top: 28px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 0.8rem;
    position: relative;
    z-index: 1;
}

/* RIGHT PANEL — form */
.login-form-panel {
    flex: 1;
    background: #fff;
    padding: 50px 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-form-panel .form-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 6px;
}

.login-form-panel .form-subtitle {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 30px;
}

.login-form-panel .form-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 5px;
}

.login-form-panel .form-control {
    border-radius: 8px;
    border: 1.5px solid #d1d5db;
    padding: 10px 14px;
    font-size: 0.88rem;
    transition: border 0.15s, box-shadow 0.15s;
}

.login-form-panel .form-control:focus {
    border-color: #1570EF;
    box-shadow: 0 0 0 3px rgba(21, 112, 239, 0.15);
}

.login-form-panel .input-group-text {
    border-radius: 0 8px 8px 0;
    background: #f3f4f6;
    border: 1.5px solid #d1d5db;
    border-left: none;
    color: #6b7280;
}

.login-form-panel .input-group .form-control {
    border-right: none;
    border-radius: 8px 0 0 8px;
}


.btn-login {
    background: linear-gradient(135deg, #1570EF, #0c4fc4);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    transition: all 0.2s ease;
    width: 100%;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(21, 112, 239, 0.4);
}

.alert-login {
    border-radius: 8px;
    font-size: 0.83rem;
    padding: 10px 14px;
}

.tahun-badge {
    font-size: 0.72rem;
    color: #94a3b8;
    text-align: center;
    margin-top: 20px;
}

@media (max-width: 640px) {
    .login-brand-panel {
        display: none;
    }

    .login-form-panel {
        padding: 36px 24px;
    }

    .login-wrapper {
        border-radius: 12px;
        min-height: unset;
    }
}
