/* ============================================
   ADMIN PANEL STYLES - LOGIN PAGE
   ============================================ */

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Primary Colors */
    --primary: #4e73df;
    --primary-dark: #2e59d9;
    --primary-light: #7b9bf2;
    --primary-gradient: linear-gradient(135deg, #4e73df 0%, #224abe 100%);
    
    /* Secondary Colors */
    --secondary: #858796;
    --success: #1cc88a;
    --info: #36b9cc;
    --warning: #f6c23e;
    --danger: #e74a3b;
    --dark: #5a5c69;
    --light: #f8f9fc;
    
    /* Gray Scale */
    --gray-100: #f8f9fc;
    --gray-200: #eaecf4;
    --gray-300: #dddfeb;
    --gray-400: #b7b9cc;
    --gray-500: #858796;
    --gray-600: #6e707e;
    --gray-700: #5a5c69;
    --gray-800: #3a3b45;
    --gray-900: #2e2f38;
    
    /* Shadows */
    --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
    --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
    
    /* Border Radius */
    --radius-sm: 0.35rem;
    --radius: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 2rem;
    
    /* Transitions */
    --transition: all 0.3s ease;
}

/* Body Styles */
body {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--gray-700);
    background-color: var(--light);
    min-height: 100vh;
    overflow-x: hidden;
}

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-gradient);
    padding: 40px 20px;
    position: relative;
    overflow-y: auto;
}

/* Background Circles */
.bg-circle {
    position: fixed;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1;
}

.circle-1 {
    width: 300px;
    height: 300px;
    top: -150px;
    left: -150px;
}

.circle-2 {
    width: 200px;
    height: 200px;
    bottom: -100px;
    right: -100px;
}

.circle-3 {
    width: 150px;
    height: 150px;
    top: 30%;
    left: 10%;
}

.circle-4 {
    width: 100px;
    height: 100px;
    bottom: 20%;
    right: 15%;
}

/* Login Container */
.login-container {
    width: 100%;
    max-width: 1200px;
    position: relative;
    z-index: 10;
    margin: 0 auto;
}

/* Login Header */
.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.logo {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.logo-icon {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
}

.logo-icon i {
    font-size: 40px;
    color: var(--primary);
}

.logo-text h1 {
    font-size: 32px;
    font-weight: 700;
    color: white;
    margin-bottom: 5px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.logo-text p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
}

/* Login Card */
.login-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    max-width: 450px;
    margin: 0 auto;
    opacity: 1; /* Pastikan selalu visible */
    visibility: visible; /* Pastikan selalu visible */
    transform: none; /* Reset transform */
}

.card-header {
    padding: 40px 40px 20px;
    text-align: center;
    background: var(--primary-gradient);
    color: white;
}

.card-header h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.card-header p {
    font-size: 14px;
    opacity: 0.9;
    font-weight: 300;
}

/* Alerts */
.alert {
    padding: 15px 20px;
    margin: 0 20px 20px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-error {
    background: #fee;
    border: 1px solid #fcc;
    color: #c33;
}

.alert i {
    font-size: 16px;
}

/* Login Form */
.login-form {
    padding: 30px 40px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--gray-700);
    display: flex;
    align-items: center;
    gap: 8px;
}

.input-with-icon {
    position: relative;
}

.input-with-icon input {
    width: 100%;
    padding: 12px 45px 12px 15px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius);
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: var(--gray-800);
    background: white;
    transition: var(--transition);
}

.input-with-icon input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(78, 115, 223, 0.1);
}

.input-with-icon .input-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-500);
    font-size: 14px;
}

.toggle-password {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray-500);
    cursor: pointer;
    padding: 5px;
    font-size: 14px;
    transition: var(--transition);
    z-index: 2;
}

.toggle-password:hover {
    color: var(--primary);
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    color: var(--gray-600);
    user-select: none;
}

.checkbox-label input {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid var(--gray-400);
    border-radius: 4px;
    position: relative;
    transition: var(--transition);
}

.checkbox-label input:checked + .checkmark {
    background: var(--primary);
    border-color: var(--primary);
}

.checkbox-label input:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.forgot-password {
    font-size: 13px;
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

.forgot-password:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 500;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    gap: 8px;
}

.btn-block {
    width: 100%;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(78, 115, 223, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(78, 115, 223, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-login {
    padding: 14px;
    font-size: 15px;
    font-weight: 600;
}

/* Divider */
.login-divider {
    display: flex;
    align-items: center;
    margin: 25px 0;
    color: var(--gray-500);
    font-size: 13px;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--gray-300);
}

.login-divider span {
    padding: 0 15px;
}

/* Social Login */
.social-login {
    text-align: center;
}

.social-login p {
    font-size: 13px;
    color: var(--gray-600);
    margin-bottom: 15px;
}

.social-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.btn-social {
    flex: 1;
    padding: 10px;
    background: white;
    border: 1px solid var(--gray-300);
    color: var(--gray-700);
    font-size: 13px;
}

.btn-social:hover {
    background: var(--gray-100);
    border-color: var(--gray-400);
}

.btn-social i {
    font-size: 14px;
}

.btn-google:hover {
    background: #4285f4;
    color: white;
    border-color: #4285f4;
}

.btn-microsoft:hover {
    background: #00a4ef;
    color: white;
    border-color: #00a4ef;
}

/* Card Footer */
.card-footer {
    padding: 20px 40px;
    text-align: center;
    border-top: 1px solid var(--gray-200);
    background: var(--gray-100);
}

.card-footer p {
    font-size: 13px;
    color: var(--gray-600);
    margin-bottom: 10px;
}

.card-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.card-footer a:hover {
    text-decoration: underline;
}

.copyright {
    font-size: 12px;
    color: var(--gray-500);
    margin-top: 15px;
}

/* Login Info */
.login-info {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
    padding-bottom: 20px;
}

.info-card {
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--radius);
    padding: 25px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.info-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.info-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.info-icon i {
    font-size: 24px;
    color: white;
}

.info-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: white;
    margin-bottom: 8px;
}

.info-card p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .login-page {
        padding: 20px 15px;
        align-items: flex-start;
    }
    
    .login-card {
        max-width: 100%;
        margin-bottom: 30px;
    }
    
    .card-header,
    .login-form,
    .card-footer {
        padding: 30px;
    }
    
    .social-buttons {
        flex-direction: column;
    }
    
    .btn-social {
        width: 100%;
    }
    
    .info-card {
        min-width: 100%;
        max-width: 100%;
        margin-bottom: 15px;
    }
    
    .logo-text h1 {
        font-size: 28px;
    }
    
    .logo-text p {
        font-size: 14px;
    }
    
    .login-info {
        margin-top: 30px;
        flex-direction: column;
    }
    
    .bg-circle {
        display: none;
    }
}

@media (max-width: 576px) {
    .login-page {
        padding: 15px 10px;
    }
    
    .card-header,
    .login-form,
    .card-footer {
        padding: 20px;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .logo-icon {
        width: 60px;
        height: 60px;
    }
    
    .logo-icon i {
        font-size: 30px;
    }
    
    .logo-text h1 {
        font-size: 24px;
    }
    
    .card-header h2 {
        font-size: 20px;
    }
}

/* Custom scrollbar */
.login-page::-webkit-scrollbar {
    width: 6px;
}

.login-page::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

.login-page::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.login-page::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Form error styles */
.form-error {
    color: var(--danger);
    font-size: 12px;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Utility classes */
.text-center {
    text-align: center;
}

.mt-3 {
    margin-top: 1rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

.d-none {
    display: none !important;
}

.d-block {
    display: block !important;
}

/* Loading state untuk button */
.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid white;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}