/* Admin Login Specific Styles */

.admin-login-body {
    overflow: hidden;
    position: relative;
    min-height: 100vh;
}

/* Background Animation */
.admin-bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, #0a0a1a, #1a1a2e, #16213e);
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.shape {
    position: absolute;
    background: linear-gradient(135deg, rgba(136, 120, 204, 0.1), rgba(168, 85, 247, 0.1));
    border-radius: 50%;
    animation: float 20s infinite linear;
}

.shape-1 {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 120px;
    height: 120px;
    top: 60%;
    right: 10%;
    animation-delay: -5s;
}

.shape-3 {
    width: 60px;
    height: 60px;
    top: 80%;
    left: 20%;
    animation-delay: -10s;
}

.shape-4 {
    width: 100px;
    height: 100px;
    top: 10%;
    right: 30%;
    animation-delay: -15s;
}

.shape-5 {
    width: 140px;
    height: 140px;
    top: 40%;
    left: 50%;
    animation-delay: -8s;
}

@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-100px) rotate(180deg);
        opacity: 0.6;
    }
    100% {
        transform: translateY(0px) rotate(360deg);
        opacity: 0.3;
    }
}

/* Login Section */
.admin-login-section {
    position: relative;
    z-index: 1;
    padding: 2rem 0;
}

/* Login Card */
.admin-login-card {
    background: rgba(136, 120, 204, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(136, 120, 204, 0.15);
    box-shadow: 0 20px 60px rgba(136, 120, 204, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
    max-width: 500px;
    margin: 0 auto;
}

.admin-login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(136, 120, 204, 0.3), transparent);
}

/* Header */
.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.admin-icon {
    background: linear-gradient(135deg, #8878cc, #a855f7);
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    box-shadow: 0 10px 30px rgba(136, 120, 204, 0.3);
}

.admin-title {
    color: white;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #8878cc, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.admin-subtitle {
    color: #94a3b8;
    font-size: 1rem;
    margin: 0;
    font-weight: 500;
}

/* Security Notice */
.security-notice {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.security-icon {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.security-notice span {
    color: #6ee7b7;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.4;
}

/* Error Alert */
.error-alert {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 2rem;
}

.error-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #fca5a5;
    font-weight: 500;
}

.error-content i {
    color: #ef4444;
    flex-shrink: 0;
}

/* Form Styling */
.admin-login-form {
    margin-bottom: 2rem;
}

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

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

.admin-input {
    background: rgba(26, 26, 46, 0.6);
    border: 1px solid rgba(136, 120, 204, 0.2);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    color: #e2e8f0;
    font-size: 1rem;
    transition: all 0.3s ease;
    width: 100%;
}

.admin-input:focus {
    background: rgba(26, 26, 46, 0.8);
    border-color: rgba(136, 120, 204, 0.5);
    box-shadow: 0 0 0 0.2rem rgba(136, 120, 204, 0.25);
    outline: none;
    color: white;
}

.admin-input::placeholder {
    color: #64748b;
}

/* Password Input */
.password-input-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 0.25rem;
}

.password-toggle:hover {
    color: #8878cc;
}

/* Login Button */
.admin-login-btn {
    background: linear-gradient(135deg, rgba(136, 120, 204, 0.3), rgba(168, 85, 247, 0.3));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(136, 120, 204, 0.4);
    color: white;
    padding: 1rem 2rem;
    border-radius: 16px;
    font-weight: 600;
    font-size: 1rem;
    width: 100%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 6px 24px rgba(136, 120, 204, 0.1);
}

.admin-login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.admin-login-btn:hover::before {
    left: 100%;
}

.admin-login-btn:hover {
    background: linear-gradient(135deg, rgba(136, 120, 204, 0.4), rgba(168, 85, 247, 0.4));
    border-color: rgba(136, 120, 204, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(136, 120, 204, 0.2);
}

.admin-login-btn:active {
    transform: translateY(0);
}

.btn-text, .btn-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Footer */
.login-footer {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(136, 120, 204, 0.2);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

.footer-link {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #8878cc;
}

.footer-text {
    color: #64748b;
    font-size: 0.85rem;
}

/* Loading Animation */
@keyframes loading-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.loading-spin {
    animation: loading-spin 1s linear infinite;
}

/* Responsive */
@media (max-width: 768px) {
    .admin-login-card {
        padding: 2rem;
        margin: 1rem;
    }
    
    .admin-title {
        font-size: 1.75rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    .shape {
        display: none;
    }
}

@media (max-width: 576px) {
    .admin-login-card {
        padding: 1.5rem;
    }
    
    .admin-icon {
        width: 60px;
        height: 60px;
    }
    
    .admin-title {
        font-size: 1.5rem;
    }
    
    .admin-input {
        padding: 0.875rem 1rem;
    }
}

.admin-login-btn-simple {
    background: linear-gradient(135deg, rgba(136, 120, 204, 0.3), rgba(168, 85, 247, 0.3));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(136, 120, 204, 0.4);
    color: white;
    padding: 1rem 2rem;
    border-radius: 16px;
    font-weight: 600;
    font-size: 1rem;
    width: 100%;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.admin-login-btn-simple:hover {
    background: linear-gradient(135deg, rgba(136, 120, 204, 0.4), rgba(168, 85, 247, 0.4));
    border-color: rgba(136, 120, 204, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(136, 120, 204, 0.2);
}

