/* ===================================
   FreshSMP Staff Portal - Login Page
   Enhanced Edition
   VERSION: 3.0 - CLEANED (No Loading States)
   Last Updated: Nov 2, 2025 - 19:50
   =================================== */

:root {
    --primary: #00d4ff;
    --primary-dark: #0096ff;
    --secondary: #1a3a52;
    --dark: #0d1f2d;
    --text-muted: #a0b5c7;
    --shadow-color: rgba(0, 212, 255, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(180deg, #1a3a52 0%, #0d1f2d 100%);
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow-x: hidden;
    padding: 20px;
}

/* Animated Background Particles */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(0, 212, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 150, 255, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(0, 212, 255, 0.05) 0%, transparent 50%);
    animation: backgroundShift 15s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes backgroundShift {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

.login-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 40px 20px;
}

/* ============= CARD ============= */
.login-card {
    background: linear-gradient(145deg, rgba(13, 31, 45, 0.98) 0%, rgba(26, 58, 82, 0.95) 100%);
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 25px;
    padding: 35px 30px;
    text-align: center;
    backdrop-filter: blur(30px);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset,
        0 0 100px rgba(0, 212, 255, 0.15);
    animation: fadeInUp 0.8s ease, cardFloat 6s ease-in-out infinite;
    width: 100%;
    max-width: 550px;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.login-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 25px 70px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset,
        0 0 120px rgba(0, 212, 255, 0.25);
    border-color: rgba(0, 212, 255, 0.5);
}

@keyframes cardFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

/* Animated Background Gradient */
.login-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle, 
        rgba(0, 212, 255, 0.12) 0%, 
        rgba(0, 150, 255, 0.08) 30%,
        transparent 70%
    );
    animation: rotate 25s linear infinite;
    z-index: 0;
}

/* Corner Accent Lines */
.login-card::after {
    content: '';
    position: absolute;
    inset: 15px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 20px;
    pointer-events: none;
    z-index: 0;
}

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

/* ============= LOGO SECTION ============= */
.login-logo-section {
    position: relative;
    z-index: 1;
    margin-bottom: 50px;
    animation: fadeIn 1s ease 0.3s both;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Logo wrapper - no animations */
.login-logo-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.login-logo {
    width: 450px;
    height: auto;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 8px 20px rgba(0, 212, 255, 0.3));
    transition: all 0.4s ease;
    border: 4px solid rgba(0, 212, 255, 0.5);
    border-radius: 20px;
    padding: 20px;
    background: linear-gradient(145deg, rgba(13, 31, 45, 0.95) 0%, rgba(26, 58, 82, 0.9) 100%);
    box-shadow: 
        0 0 15px rgba(0, 212, 255, 0.25),
        0 0 30px rgba(0, 212, 255, 0.15),
        inset 0 0 15px rgba(0, 212, 255, 0.08);
}

.login-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 10px 25px rgba(0, 212, 255, 0.4));
    border-color: rgba(0, 212, 255, 0.7);
    box-shadow: 
        0 0 20px rgba(0, 212, 255, 0.35),
        0 0 40px rgba(0, 212, 255, 0.2),
        inset 0 0 20px rgba(0, 212, 255, 0.12);
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.login-title {
    font-size: 3.2rem;
    font-weight: 900;
    background: linear-gradient(135deg, #00d4ff 0%, #ffffff 50%, #00d4ff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: none;
    letter-spacing: 3px;
    margin-bottom: 12px;
    text-shadow: 0 0 30px rgba(0, 212, 255, 0.3);
}

.login-subtitle {
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 5px;
    text-transform: uppercase;
    font-size: 1.05rem;
    opacity: 0.9;
}

/* ============= CONTENT ============= */
.login-content {
    position: relative;
    z-index: 1;
    animation: fadeIn 1s ease 0.5s both;
}

.login-header h2 {
    font-size: 1.15rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 8px;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 212, 255, 0.3);
}

.login-header h2 i {
    color: var(--primary);
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

.login-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 25px;
    line-height: 1.5;
}

/* ============= REQUIREMENTS ============= */
.login-requirements {
    background: linear-gradient(135deg, rgba(0, 150, 255, 0.12) 0%, rgba(0, 212, 255, 0.08) 100%);
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.login-requirements::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;
}

.login-requirements:hover {
    border-color: rgba(0, 212, 255, 0.5);
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.2);
    transform: translateY(-2px);
}

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

.requirements-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--primary);
    margin-bottom: 15px;
    font-weight: 700;
    font-size: 1rem;
}

.requirements-header i {
    font-size: 1.3rem;
}

.requirements-list {
    text-align: left;
    max-width: 100%;
    margin: 0 auto;
}

.requirements-list div {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    margin: 8px 0;
    font-weight: 500;
    font-size: 0.88rem;
    padding: 6px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.requirements-list div:hover {
    background: rgba(0, 212, 255, 0.1);
    transform: translateX(5px);
}

.requirements-list i {
    color: var(--primary);
    font-size: 1.1rem;
    min-width: 20px;
    transition: transform 0.3s ease;
}

.requirements-list div:hover i {
    transform: scale(1.3) rotate(10deg);
}

/* ============= LOGIN BUTTON ============= */
.login-button {
    background: linear-gradient(135deg, #0096ff 0%, #00d4ff 100%);
    border: none;
    border-radius: 12px;
    padding: 14px 25px;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 12px 30px rgba(0, 150, 255, 0.4),
        0 0 0 0 rgba(0, 212, 255, 0.4);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Smoother hover overlay using transform instead of size animation */
.login-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
    transform: translateX(-100%);
    transition: transform 0.4s ease;
}

.login-button:hover:not(:disabled)::before {
    transform: translateX(0);
}

.login-button:hover:not(:disabled) {
    transform: translateY(-4px);
    box-shadow: 
        0 18px 45px rgba(0, 212, 255, 0.6),
        0 0 0 8px rgba(0, 212, 255, 0.1);
    background: linear-gradient(135deg, #00a6ff 0%, #00e4ff 100%);
}

.login-button:active:not(:disabled) {
    transform: translateY(-2px) scale(0.98);
}

.login-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.login-button svg,
.login-button i {
    color: white;
    font-size: 1.2rem;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.login-button:hover:not(:disabled) svg,
.login-button:hover:not(:disabled) i {
    transform: translateX(5px);
}

/* ============= FOOTER INFO ============= */
.login-footer-info {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.85rem;
    animation: fadeIn 1s ease 0.7s both;
}

.login-footer-info div {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.login-footer-info div:hover {
    background: rgba(0, 212, 255, 0.08);
    color: #ffffff;
}

.login-footer-info i {
    color: var(--primary);
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.login-footer-info div:hover i {
    transform: scale(1.2);
}

/* ============= ENCRYPTED BADGE ============= */
.login-encrypted {
    margin-top: 25px;
    color: var(--primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.85rem;
    padding: 10px 16px;
    background: rgba(0, 212, 255, 0.08);
    border-radius: 10px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    animation: fadeIn 1s ease 0.9s both;
    transition: all 0.3s ease;
}

.login-encrypted:hover {
    background: rgba(0, 212, 255, 0.12);
    border-color: rgba(0, 212, 255, 0.4);
    transform: scale(1.02);
}

.login-encrypted i {
    animation: lockShake 3s ease-in-out infinite;
}

@keyframes lockShake {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-5deg); }
    75% { transform: rotate(5deg); }
}

/* ============= FOOTER ============= */
.login-footer {
    text-align: center;
    margin-top: 30px;
    color: var(--text-muted);
    font-size: 0.85rem;
    animation: fadeIn 1s ease 1s both;
    width: 100%;
    max-width: 550px;
}

.login-footer a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
    position: relative;
}

.login-footer a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.login-footer a:hover {
    color: #ffffff;
    text-shadow: 0 0 10px var(--shadow-color);
}

.login-footer a:hover::after {
    width: 100%;
}

.login-footer span {
    margin: 0 10px;
    color: rgba(255,255,255,0.3);
}

/* ============= ANIMATIONS ============= */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* ============= RESPONSIVE ============= */
@media (max-width: 768px) {
    .login-wrapper {
        max-width: 90%;
    }

    .login-card {
        padding: 30px 25px;
        border-radius: 20px;
    }

    .login-logo-wrapper::before {
        width: 400px;
        height: 400px;
    }

    .login-logo-wrapper::after {
        width: 460px;
        height: 460px;
    }

    .login-logo {
        width: 350px;
        padding: 15px;
        border-width: 3px;
    }

    .login-title {
        font-size: 2.6rem;
    }

    .login-subtitle {
        font-size: 0.9rem;
        letter-spacing: 4px;
    }

    .login-header h2 {
        font-size: 1.05rem;
    }

    .login-requirements {
        padding: 18px 16px;
    }

    .requirements-list div {
        font-size: 0.85rem;
    }

    .login-button {
        font-size: 0.95rem;
        padding: 13px 22px;
    }
}

@media (max-width: 480px) {
    .login-wrapper {
        max-width: 95%;
    }

    .login-card {
        padding: 25px 20px;
        border-radius: 18px;
    }

    .login-logo-wrapper::before {
        width: 280px;
        height: 280px;
    }

    .login-logo-wrapper::after {
        width: 330px;
        height: 330px;
    }

    .login-logo {
        width: 240px;
        padding: 12px;
        border-width: 3px;
    }

    .login-title {
        font-size: 2rem;
    }

    .login-subtitle {
        font-size: 0.8rem;
        letter-spacing: 3px;
    }

    .login-header h2 {
        font-size: 1rem;
    }

    .login-requirements {
        padding: 16px 14px;
    }

    .requirements-header {
        font-size: 0.95rem;
    }

    .requirements-list div {
        font-size: 0.82rem;
        gap: 8px;
    }

    .login-button {
        font-size: 0.9rem;
        padding: 12px 20px;
    }

    .login-footer-info {
        font-size: 0.8rem;
    }

    .login-encrypted {
        font-size: 0.8rem;
        padding: 8px 14px;
    }
}

/* ============= ACCESSIBILITY ============= */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .login-card {
        border-width: 3px;
    }

    .login-button {
        border: 2px solid #ffffff;
    }
}

/* Dark mode enhancement (even darker) */
@media (prefers-color-scheme: dark) {
    body {
        background: linear-gradient(180deg, #0d1f2d 0%, #050d14 100%);
    }
}