/* Login Page Styles */
.login-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 50%, #0f0f1e 100%);
    position: relative;
    overflow: hidden;
}

/* Floating Cards Background */
.floating-cards {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.floating-card {
    position: absolute;
    width: 120px;
    height: 80px;
    opacity: 0.1;
    color: var(--neon-purple, #8b5cf6);
    filter: blur(1px);
}

.floating-card svg {
    width: 100%;
    height: 100%;
    stroke-width: 1.5;
}

.card-1 {
    top: 10%;
    left: 5%;
    animation: float1 20s infinite ease-in-out;
}

.card-2 {
    top: 20%;
    right: 10%;
    animation: float2 25s infinite ease-in-out;
    animation-delay: -2s;
}

.card-3 {
    top: 50%;
    left: 8%;
    animation: float3 18s infinite ease-in-out;
    animation-delay: -5s;
}

.card-4 {
    top: 60%;
    right: 5%;
    animation: float4 22s infinite ease-in-out;
    animation-delay: -8s;
}

.card-5 {
    bottom: 15%;
    left: 15%;
    animation: float5 24s infinite ease-in-out;
    animation-delay: -10s;
}

.card-6 {
    bottom: 25%;
    right: 20%;
    animation: float6 19s infinite ease-in-out;
    animation-delay: -12s;
}

@keyframes float1 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(30px, -30px) rotate(5deg); }
    50% { transform: translate(-20px, 20px) rotate(-5deg); }
    75% { transform: translate(20px, 30px) rotate(3deg); }
}

@keyframes float2 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(-40px, 20px) rotate(-3deg); }
    50% { transform: translate(30px, -20px) rotate(4deg); }
    75% { transform: translate(-20px, -30px) rotate(-2deg); }
}

@keyframes float3 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(25px, 25px) rotate(6deg); }
    50% { transform: translate(-30px, -25px) rotate(-4deg); }
    75% { transform: translate(35px, -20px) rotate(3deg); }
}

@keyframes float4 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(-35px, -25px) rotate(-5deg); }
    50% { transform: translate(25px, 30px) rotate(5deg); }
    75% { transform: translate(-30px, 20px) rotate(-3deg); }
}

@keyframes float5 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(40px, -30px) rotate(4deg); }
    50% { transform: translate(-25px, 25px) rotate(-6deg); }
    75% { transform: translate(30px, 30px) rotate(2deg); }
}

@keyframes float6 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(-30px, 30px) rotate(-4deg); }
    50% { transform: translate(35px, -25px) rotate(5deg); }
    75% { transform: translate(-25px, -30px) rotate(-3deg); }
}

.login-container {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 1rem;
    box-sizing: border-box;
}

.login-card {
    background: rgba(15, 15, 20, 0.95);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(139, 92, 246, 0.3);
    border-radius: 20px;
    padding: 2rem;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(139, 92, 246, 0.2);
    animation: slideIn 0.5s ease-out;
    box-sizing: border-box;
    overflow-y: auto;
    max-height: 95vh;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.login-logo {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.login-subtitle {
    color: var(--text-secondary, #9ca3af);
    font-size: 0.95rem;
    margin: 0;
}

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

.form-label {
    display: block;
    color: var(--text-primary, #f3f4f6);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    background: rgba(30, 30, 40, 0.8);
    border: 2px solid rgba(139, 92, 246, 0.2);
    border-radius: 10px;
    color: var(--text-primary, #f3f4f6);
    font-size: 1rem;
    transition: all 0.3s;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: var(--neon-purple, #8b5cf6);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.form-input::placeholder {
    color: var(--text-muted, #6b7280);
}

/* Captcha Styles */
.captcha-group {
    margin-bottom: 1.5rem;
}

.captcha-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.captcha-image {
    border: 2px solid rgba(139, 92, 246, 0.3);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    background: rgba(30, 30, 40, 0.8);
    padding: 0.5rem;
}

.captcha-image:hover {
    border-color: var(--neon-purple, #8b5cf6);
    transform: scale(1.05);
}

.captcha-refresh {
    background: rgba(139, 92, 246, 0.1);
    border: 2px solid rgba(139, 92, 246, 0.3);
    border-radius: 8px;
    padding: 0.75rem;
    cursor: pointer;
    color: var(--neon-purple, #8b5cf6);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.captcha-refresh svg {
    width: 20px;
    height: 20px;
}

.captcha-refresh:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: var(--neon-purple, #8b5cf6);
    transform: rotate(180deg);
}

/* Button */
.btn-login {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 0.5rem;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4);
}

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

/* Messages */
.error-message {
    background: rgba(239, 68, 68, 0.1);
    border: 2px solid rgba(239, 68, 68, 0.3);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    color: #fca5a5;
    font-size: 0.875rem;
    text-align: center;
}

.success-message {
    background: rgba(34, 197, 94, 0.1);
    border: 2px solid rgba(34, 197, 94, 0.3);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    color: #86efac;
    font-size: 0.875rem;
    text-align: center;
}

/* Footer */
.login-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(139, 92, 246, 0.2);
    text-align: center;
}

.switch-form {
    color: var(--text-secondary, #9ca3af);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.link-switch {
    color: var(--neon-purple, #8b5cf6);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.link-switch:hover {
    color: #a78bfa;
    text-decoration: underline;
}

.login-disclaimer {
    color: var(--text-muted, #6b7280);
    font-size: 0.75rem;
    margin: 0;
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .login-container {
        padding: 0.75rem;
        align-items: flex-start;
        padding-top: 2rem;
    }
    
    .login-card {
        padding: 1.5rem 1.25rem;
        max-width: 100%;
        border-radius: 15px;
        max-height: 100vh;
    }
    
    .login-header {
        margin-bottom: 1.25rem;
    }
    
    .login-logo {
        font-size: 1.75rem;
    }
    
    .login-subtitle {
        font-size: 0.875rem;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-input {
        padding: 0.75rem;
        font-size: 0.9375rem;
    }
    
    .captcha-container {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .captcha-image {
        flex: 1;
        min-width: 150px;
        max-width: 180px;
    }
    
    .captcha-refresh {
        padding: 0.625rem;
    }
    
    .btn-login {
        padding: 0.875rem;
        font-size: 0.9375rem;
    }
    
    .login-footer {
        margin-top: 1.5rem;
        padding-top: 1.25rem;
    }
    
    .switch-form {
        font-size: 0.8125rem;
    }
    
    .login-disclaimer {
        font-size: 0.6875rem;
        margin-top: 0.75rem;
    }
    
    .floating-card {
        width: 60px;
        height: 45px;
        opacity: 0.05;
    }
}

@media (max-width: 480px) {
    .login-container {
        padding: 0.5rem;
        padding-top: 1.5rem;
    }
    
    .login-card {
        padding: 1.25rem 1rem;
    }
    
    .login-logo {
        font-size: 1.5rem;
    }
    
    .form-input {
        padding: 0.625rem;
        font-size: 0.875rem;
    }
    
    .captcha-image {
        min-width: 120px;
        max-width: 150px;
    }
}

@media (min-width: 769px) and (max-width: 1200px) {
    .login-card {
        max-width: 400px;
        padding: 2.5rem;
    }
    
    .login-logo {
        font-size: 2.25rem;
    }
}

