.admin-login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e293b 0%, #334155 50%, #27ae60 100%);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

.admin-login-container::before {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(39, 174, 96, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    top: -150px;
    right: -150px;
    animation: float 8s ease-in-out infinite;
}

.admin-login-container::after {
    content: "";
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(46, 204, 113, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    bottom: -100px;
    left: -100px;
    animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -30px) scale(1.1); }
}

.login-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    width: 100%;
    max-width: 480px;
    animation: slideUp 0.6s ease-out;
    position: relative;
    z-index: 10;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-header {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.login-header::before {
    content: "";
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
    top: -50%;
    left: -50%;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.login-header i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 1;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.login-header h1 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.login-header p {
    opacity: 0.95;
    font-size: 1rem;
    position: relative;
    z-index: 2;
    font-weight: 500;
}

.login-form {
    padding: 2.5rem 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: #1e293b;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-group label i {
    color: #27ae60;
    font-size: 1.1rem;
}

.form-group input[type="email"],
.form-group input[type="password"] {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8fafc;
    font-family: inherit;
}

.form-group input:focus {
    outline: none;
    border-color: #27ae60;
    background: white;
    box-shadow: 0 0 0 4px rgba(39, 174, 96, 0.1);
    transform: translateY(-2px);
}

.form-group input::placeholder {
    color: #94a3b8;
}

.checkbox-group {
    margin-bottom: 2rem;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    color: #475569;
    gap: 0.75rem;
    user-select: none;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #27ae60;
    border-radius: 6px;
}

.login-btn {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 0.5rem;
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(39, 174, 96, 0.4);
    background: linear-gradient(135deg, #229954 0%, #27ae60 100%);
}

.login-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

.login-btn i {
    font-size: 1.2rem;
}

.login-footer {
    padding: 1.5rem 2rem;
    background: linear-gradient(to bottom, #f8fafc, #f1f5f9);
    text-align: center;
    border-top: 1px solid #e2e8f0;
}

.back-link {
    color: #64748b;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.back-link:hover {
    color: #27ae60;
    background: rgba(39, 174, 96, 0.1);
    transform: translateX(-4px);
}

.back-link i {
    transition: transform 0.3s ease;
}

.back-link:hover i {
    transform: translateX(-4px);
}

/* Alert Error Styles */
.alert-error {
    background: #fee2e2;
    border-left: 4px solid #ef4444;
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin: 1.5rem 2rem;
    color: #991b1b;
}

.alert-error i {
    margin-right: 0.75rem;
    color: #ef4444;
}

.alert-error ul {
    margin: 0.5rem 0 0 1.5rem;
    padding: 0;
}

.alert-error li {
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 640px) {
    .admin-login-container {
        padding: 1rem;
    }

    .login-card {
        max-width: 100%;
        border-radius: 16px;
    }

    .login-header {
        padding: 2rem 1.5rem;
    }

    .login-header h1 {
        font-size: 1.5rem;
    }

    .login-header i {
        font-size: 3rem;
    }

    .login-form {
        padding: 2rem 1.5rem;
    }

    .form-group input[type="email"],
    .form-group input[type="password"] {
        font-size: 16px; /* Prevent zoom on iOS */
    }

    .login-footer {
        padding: 1.25rem 1.5rem;
    }
}
