/* ============================================================
 * CAPAVIDA Admin Login Page Styles
 * Dark-themed administrative portal design
 * ============================================================ */

:root {
    --admin-primary: #1e293b;
    --admin-secondary: #334155;
    --admin-accent: #dc2626;
    --admin-success: #10b981;
    --admin-warning: #f59e0b;
}

body {
    background: linear-gradient(135deg, #1e293b 0%, #334155 50%, #475569 100%);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Animated background particles */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(220, 38, 38, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
    pointer-events: none;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.admin-login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.admin-login-card {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    max-width: 1000px;
    width: 100%;
    display: flex;
    backdrop-filter: blur(10px);
}

.admin-login-left {
    background: linear-gradient(135deg, var(--admin-primary) 0%, var(--admin-secondary) 100%);
    padding: 60px 40px;
    color: white;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.admin-login-left::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.admin-login-left-content {
    position: relative;
    z-index: 1;
}

.admin-shield-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
    background: rgba(220, 38, 38, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--admin-accent);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7); }
    50% { transform: scale(1.05); box-shadow: 0 0 0 20px rgba(220, 38, 38, 0); }
}

.admin-shield-icon i {
    font-size: 60px;
    color: var(--admin-accent);
}

.admin-title {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.admin-subtitle {
    text-align: center;
    opacity: 0.9;
    font-size: 16px;
    margin-bottom: 30px;
}

.admin-features {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.admin-features li {
    padding: 12px 0;
    display: flex;
    align-items: center;
    font-size: 14px;
    opacity: 0.9;
}

.admin-features li i {
    margin-right: 12px;
    color: var(--admin-success);
    font-size: 18px;
}

.admin-security-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(220, 38, 38, 0.2);
    border: 1px solid var(--admin-accent);
    border-radius: 50px;
    padding: 8px 20px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 20px;
}

.admin-security-badge i {
    margin-right: 8px;
    color: var(--admin-accent);
}

.admin-login-right {
    flex: 1;
    padding: 60px 50px;
    background: white;
}

.admin-logo-section {
    text-align: center;
    margin-bottom: 30px;
}

.admin-logo-section img {
    max-width: 200px;
    height: auto;
}

.admin-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--admin-accent) 0%, #b91c1c 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

.admin-login-header h4 {
    color: var(--admin-primary);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
}

.admin-login-header p {
    color: #64748b;
    font-size: 14px;
}

.form-control {
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--admin-accent);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.form-label {
    color: var(--admin-primary);
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
}

.admin-login-btn {
    background: linear-gradient(135deg, var(--admin-accent) 0%, #b91c1c 100%);
    border: none;
    border-radius: 10px;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
    color: white !important;
}

.admin-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
    background: linear-gradient(135deg, #b91c1c 0%, var(--admin-accent) 100%);
    color: white !important;
}

.admin-login-btn:active {
    transform: translateY(0);
}

.input-group-text {
    background: #f1f5f9;
    border: 2px solid #e2e8f0;
    border-left: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.input-group-text:hover {
    background: #e2e8f0;
}

.form-password-toggle .form-control {
    border-right: none;
}

.other-portal-link {
    background: #f1f5f9;
    border: 2px solid #e2e8f0;
    color: var(--admin-primary);
    border-radius: 10px;
    padding: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
    text-align: center;
}

.other-portal-link:hover {
    background: #e2e8f0;
    border-color: var(--admin-secondary);
    color: var(--admin-primary);
    text-decoration: none;
    transform: translateY(-2px);
}

.security-notice {
    background: #fef2f2;
    border-left: 4px solid var(--admin-accent);
    padding: 15px;
    margin-top: 20px;
    border-radius: 8px;
    font-size: 12px;
    color: #991b1b;
}

.security-notice i {
    margin-right: 8px;
    color: var(--admin-accent);
}

@media (max-width: 768px) {
    .admin-login-card {
        flex-direction: column;
    }

    .admin-login-left {
        padding: 40px 30px;
    }

    .admin-login-right {
        padding: 40px 30px;
    }

    .admin-features {
        margin: 20px 0;
    }
}

/* Loading spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.2em;
}

/* Icon animations */
.bx-tada {
    animation: tada 1.5s ease-in-out infinite;
}

@keyframes tada {
    0% { transform: scale(1) rotate(0deg); }
    10%, 20% { transform: scale(0.9) rotate(-3deg); }
    30%, 50%, 70%, 90% { transform: scale(1.1) rotate(3deg); }
    40%, 60%, 80% { transform: scale(1.1) rotate(-3deg); }
    100% { transform: scale(1) rotate(0deg); }
}
