/* ========================================
   ADMIN LOGIN - CLEAN & MODERN ??
   ======================================== */

.login-container {
    min-height: 100vh;
    display: flex;
    background: #f9fafb;
}

/* ========== LOGIN CARD ========== */
.login-card {
    flex: 1;
    max-width: 480px;
    margin: auto;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* ========== HEADER ========== */
.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.brand-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(30, 58, 138, 0.2);
}

.brand-icon i {
    font-size: 40px;
    color: white;
}

.login-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 8px;
}

.subtitle {
    font-size: 16px;
    color: #6b7280;
    font-weight: 500;
}

/* ========== ALERTS ========== */
.alert {
    padding: 14px 16px;
    border-radius: 12px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert i {
    font-size: 18px;
    flex-shrink: 0;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}

.alert-success i {
    color: #10b981;
}

.alert-danger {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
}

.alert-danger i {
    color: #ef4444;
}

/* ========== FORM ========== */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
    font-size: 14px;
}

.form-group label i {
    font-size: 16px;
    color: #1e3a8a;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 15px;
    color: #1f2937;
    transition: all 0.2s;
    background: white;
}

.form-control:focus {
    outline: none;
    border-color: #1e3a8a;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.form-control::placeholder {
    color: #9ca3af;
}

/* ========== INPUT GROUP ========== */
.input-group {
    position: relative;
    display: flex;
}

.input-group .form-control {
    flex: 1;
    border-radius: 12px 0 0 12px;
}

.toggle-password {
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-left: none;
    border-radius: 0 12px 12px 0;
    background: white;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
}

.toggle-password:hover {
    background: #f3f4f6;
    color: #1e3a8a;
}

/* ========== FORM OPTIONS ========== */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    font-size: 14px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #374151;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #1e3a8a;
}

.forgot-link {
    color: #1e3a8a;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.forgot-link:hover {
    color: #1e40af;
    text-decoration: underline;
}

/* ========== BUTTON ========== */
.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(30, 58, 138, 0.4);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn i {
    font-size: 20px;
}

/* ========== SPINNER ========== */
.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* ========== FOOTER ========== */
.login-footer {
    margin-top: 32px;
    text-align: center;
    font-size: 14px;
    color: #6b7280;
}

.login-footer a {
    color: #1e3a8a;
    text-decoration: none;
    font-weight: 500;
}

.login-footer a:hover {
    text-decoration: underline;
}

/* ========== SECURITY BADGE ========== */
.security-badge {
    margin-top: 24px;
    padding: 12px;
    background: #f3f4f6;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    color: #6b7280;
}

.security-badge i {
    font-size: 18px;
    color: #10b981;
}

/* ========== INFO PANEL (Right Side) ========== */
.info-panel {
    flex: 1;
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
}

.info-content {
    max-width: 480px;
}

.info-content > i {
    font-size: 64px;
    display: block;
    margin-bottom: 24px;
    opacity: 0.9;
}

.info-content h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
}

.info-content > p {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.9;
    line-height: 1.6;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    font-size: 16px;
}

.feature-item i {
    font-size: 24px;
    color: #10b981;
    flex-shrink: 0;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .info-panel {
        display: none;
    }

    .login-card {
        max-width: 100%;
        padding: 40px 24px;
    }
}

@media (max-width: 480px) {
    .login-card {
        padding: 24px 16px;
    }

    .login-header h1 {
        font-size: 24px;
    }

    .brand-icon {
        width: 64px;
        height: 64px;
    }

    .brand-icon i {
        font-size: 32px;
    }

    .form-options {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
}
