/* ============================================
   LOGIN STYLE - DISDUKCAPIL PAREPARE
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', sans-serif;
}

:root {
    --primary-color: #1e3a5f;
    --primary-dark: #152c47;
    --secondary-color: #3498db;
    --secondary-dark: #2980b9;
    --accent-color: #e74c3c;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --text-color: #2c3e50;
    --text-muted: #6c757d;
    --border-color: #e2e8f0;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    background: linear-gradient(135deg, #1e3a5f 0%, #152c47 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-x: hidden;
}

/* ============================================
   BACKGROUND DECORATION
   ============================================ */
.login-page {
    width: 100%;
    max-width: 1000px;
    position: relative;
    z-index: 1;
}

.bg-decoration {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.bg-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
    background: white;
}

.bg-circle-1 {
    width: 500px;
    height: 500px;
    top: -200px;
    right: -150px;
    animation: float 12s ease-in-out infinite;
}

.bg-circle-2 {
    width: 350px;
    height: 350px;
    bottom: -120px;
    left: -100px;
    animation: float 15s ease-in-out infinite reverse;
}

.bg-circle-3 {
    width: 200px;
    height: 200px;
    top: 50%;
    left: 10%;
    animation: float 10s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -30px) scale(1.05); }
}

/* ============================================
   LOGIN CONTAINER
   ============================================ */
.login-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: white;
    border-radius: 24px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    min-height: 600px;
    animation: slideUp 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   BRAND PANEL (KIRI)
   ============================================ */
.login-brand-panel {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 50%, #152c47 100%);
    color: white;
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.login-brand-panel::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(52, 152, 219, 0.25), transparent 70%);
    border-radius: 50%;
}

.login-brand-panel::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -20%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(231, 76, 60, 0.15), transparent 70%);
    border-radius: 50%;
}

.brand-content {
    position: relative;
    z-index: 2;
}

.brand-logo {
    width: 100px;
    height: 100px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    padding: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2); }
    50% { box-shadow: 0 8px 32px rgba(52, 152, 219, 0.5); }
}

.brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.login-brand-panel h1 {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 4px;
    color: white;
}

.login-brand-panel h2 {
    font-size: 1.3rem;
    font-weight: 400;
    color: #5dade2;
    margin-bottom: 16px;
    letter-spacing: 1px;
}

.brand-tagline {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
    margin-bottom: 28px;
}

.brand-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #3498db, #e74c3c);
    border-radius: 2px;
    margin-bottom: 28px;
}

.brand-features {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.brand-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
}

.brand-feature i {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    color: #5dade2;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.brand-footer {
    position: relative;
    z-index: 2;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.brand-footer p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.5px;
}

/* ============================================
   FORM PANEL (KANAN)
   ============================================ */
.login-form-panel {
    padding: 48px 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: white;
}

.mobile-logo {
    display: none;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.mobile-logo img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #f8fafc;
    padding: 4px;
    object-fit: contain;
}

.mobile-logo span {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 0.95rem;
}

.login-header {
    margin-bottom: 24px;
}

.login-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #fff3cd, #ffe9a8);
    color: #856404;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 16px;
    border: 1px solid #ffe9a8;
}

.login-badge i {
    font-size: 0.75rem;
}

.login-header h3 {
    font-size: 1.6rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 6px;
}

.login-header p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ============================================
   ADMIN WARNING
   ============================================ */
.admin-warning {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: linear-gradient(135deg, #fff8e1, #fff3cd);
    border-left: 4px solid var(--warning-color);
    padding: 14px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    animation: fadeIn 0.5s ease;
}

.admin-warning i {
    color: var(--warning-color);
    font-size: 1.1rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.admin-warning strong {
    display: block;
    color: #856404;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 3px;
}

.admin-warning small {
    color: #8a6d3b;
    font-size: 0.78rem;
    line-height: 1.4;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   ALERT ERROR
   ============================================ */
.login-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.85rem;
    margin-bottom: 20px;
    animation: shake 0.5s ease;
}

.login-alert-error {
    background: #fef2f2;
    border-left: 4px solid var(--accent-color);
    color: #991b1b;
}

.login-alert-error i {
    color: var(--accent-color);
    font-size: 1rem;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    75% { transform: translateX(6px); }
}

/* ============================================
   FORM
   ============================================ */
.login-form {
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 8px;
}

.form-group label i {
    color: var(--secondary-color);
    font-size: 0.8rem;
    width: 16px;
}

.input-wrapper {
    position: relative;
}

.form-input {
    width: 100%;
    padding: 13px 16px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 0.9rem;
    color: var(--text-color);
    transition: var(--transition);
    background: #f8fafc;
    font-family: inherit;
}

.form-input::placeholder {
    color: #adb5bd;
    font-size: 0.85rem;
}

.form-input:focus {
    outline: none;
    border-color: var(--secondary-color);
    background: white;
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.12);
}

.input-wrapper .form-input {
    padding-right: 48px;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 8px;
    font-size: 0.9rem;
    transition: var(--transition);
    border-radius: 6px;
}

.toggle-password:hover {
    color: var(--secondary-color);
    background: rgba(52, 152, 219, 0.1);
}

/* ============================================
   LOGIN BUTTON
   ============================================ */
.login-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 24px;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.5px;
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.35);
    margin-top: 8px;
    font-family: inherit;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(52, 152, 219, 0.5);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-dark));
}

.login-btn:active {
    transform: translateY(0);
}

.login-btn i {
    font-size: 0.95rem;
}

/* ============================================
   INFO BOX
   ============================================ */
.login-info {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #f0f9ff;
    border-left: 4px solid var(--secondary-color);
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.78rem;
    color: #0c5460;
    margin-bottom: 20px;
    line-height: 1.5;
}

.login-info i {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.login-info strong {
    color: var(--primary-color);
}

/* ============================================
   BACK HOME
   ============================================ */
.back-home {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.back-home a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
    padding: 8px 16px;
    border-radius: 8px;
}

.back-home a:hover {
    color: var(--secondary-color);
    background: rgba(52, 152, 219, 0.08);
    transform: translateX(-4px);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
    .login-container {
        grid-template-columns: 1fr;
        max-width: 480px;
        min-height: auto;
    }

    .login-brand-panel {
        display: none;
    }

    .login-form-panel {
        padding: 40px 32px;
    }

    .mobile-logo {
        display: flex;
    }
}

@media (max-width: 480px) {
    body {
        padding: 12px;
    }

    .login-form-panel {
        padding: 32px 24px;
    }

    .login-header h3 {
        font-size: 1.4rem;
    }

    .login-badge {
        font-size: 0.65rem;
    }

    .login-btn {
        padding: 14px 20px;
        font-size: 0.9rem;
    }

    .admin-warning {
        padding: 12px 14px;
    }

    .admin-warning strong {
        font-size: 0.8rem;
    }

    .admin-warning small {
        font-size: 0.72rem;
    }
}