/* Base Styles */
:root {
    --primary-bg-dark: #1e0c45;
    --primary-bg-light: #2e0f68;
    --primary-btn: #ff9b00;
    --secondary-btn: #7e57c2;
    --glow-color: #7e57ff;
    --neon-blue: #00b3ff;
    --neon-purple: #7e57ff;
    --text-color: #ffffff;
    --card-bg: rgba(46, 15, 104, 0.3);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, var(--primary-bg-dark) 0%, var(--primary-bg-light) 100%);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Page Transition */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-bg-dark);
    z-index: 9999;
    transform: translateY(100%);
    animation: pageTransitionIn 1s ease-in-out forwards;
}

@keyframes pageTransitionIn {
    0% {
        transform: translateY(100%);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes pageTransitionOut {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateY(-100%);
        opacity: 0;
    }
}

/* Particles Background */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Admin Login Container */
.admin-container {
    width: 100%;
    max-width: 450px;
    padding: 20px;
    z-index: 10;
}

/* Login Card */
.login-card {
    background: rgba(30, 12, 69, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 0 30px rgba(126, 87, 255, 0.3);
    border: 1px solid rgba(126, 87, 255, 0.2);
    animation: cardFadeIn 0.8s ease-in-out;
    position: relative;
    overflow: hidden;
}

@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Login Icon */
.login-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(126, 87, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fff;
    margin: 0 auto 20px;
    box-shadow: 0 0 20px rgba(126, 87, 255, 0.5);
    animation: iconGlow 2s infinite alternate;
}

@keyframes iconGlow {
    from {
        box-shadow: 0 0 10px rgba(126, 87, 255, 0.5);
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    }
    to {
        box-shadow: 0 0 25px rgba(126, 87, 255, 0.8);
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
    }
}

/* Login Title */
.login-card h1 {
    font-size: 2.2rem;
    margin-bottom: 5px;
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 30px;
}

/* Form Styles */
#admin-login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 25px;
}

.input-group {
    position: relative;
}

.input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(126, 87, 255, 0.8);
    font-size: 1.1rem;
    z-index: 1;
}

.input-group input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border-radius: 10px;
    border: 1.5px solid rgba(126, 87, 255, 0.5);
    background: rgba(30, 12, 69, 0.5);
    color: #fff;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: var(--transition);
}

.input-group input:focus {
    outline: none;
    border-color: var(--neon-purple);
    box-shadow: 0 0 15px rgba(126, 87, 255, 0.5);
}

.input-group input::placeholder {
    color: rgba(126, 87, 255, 0.6);
}

/* Login Button */
.login-btn {
    padding: 15px;
    border-radius: 10px;
    border: none;
    background: var(--primary-btn);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(255, 155, 0, 0.3);
}

.login-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 155, 0, 0.5);
}

.login-btn:active {
    transform: translateY(1px);
}

.login-btn[disabled] {
    opacity: 0.7;
    cursor: not-allowed;
    background-color: #eda229 !important;
}

/* Back Link */
.back-link {
    margin-top: 20px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.back-link:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Wave Background */
.wave-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    z-index: -1;
    overflow: hidden;
}

.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1440 320" xmlns="http://www.w3.org/2000/svg"><path fill="%237e57ff" fill-opacity="0.3" d="M0,192L48,197.3C96,203,192,213,288,229.3C384,245,480,267,576,250.7C672,235,768,181,864,181.3C960,181,1056,235,1152,234.7C1248,235,1344,181,1392,154.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: 1440px 100px;
    animation: wave 20s linear infinite;
}

.wave1 {
    opacity: 0.7;
    animation-delay: 0s;
    bottom: 0;
}

.wave2 {
    opacity: 0.5;
    animation-delay: -5s;
    bottom: 10px;
    animation-duration: 15s;
}

@keyframes wave {
    0% {
        background-position-x: 0;
    }
    100% {
        background-position-x: 1440px;
    }
}

/* Responsive Styles */
@media (max-width: 768px) {
    .admin-container {
        padding: 15px;
    }
    
    .login-card {
        padding: 30px 20px;
    }
    
    .login-icon {
        width: 60px;
        height: 60px;
        font-size: 1.7rem;
    }
    
    .login-card h1 {
        font-size: 1.8rem;
    }
    
    .subtitle {
        font-size: 0.9rem;
    }
    
    .input-group input {
        padding: 12px 12px 12px 40px;
    }
    
    .login-btn {
        padding: 12px;
    }
}