/* =====================================================
   MLM WAREHOUSE AUTHENTICATION - Orange & Blue Theme
   ===================================================== */

:root {
    --primary-blue: #1E3A8A;
    --accent-orange: #F97316;
    --white: #ffffff;
    --off-white: #F8FAFC;
    --gray-300: #CBD5E1;
    --gray-400: #94A3B8;
    
    --gradient-primary: linear-gradient(135deg, #1E3A8A, #2563EB);
    --gradient-accent: linear-gradient(135deg, #F97316, #FB923C);
    
    --radius-md: 12px;
    --radius-xl: 24px;
    --transition-normal: 0.3s ease;
}

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

html {
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    color: var(--off-white);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Auth Container */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

/* Animated Background */
.auth-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 50%, #334155 100%);
    z-index: 0;
}

.auth-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(249, 115, 22, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(30, 58, 138, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 20% 80%, rgba(249, 115, 22, 0.1) 0%, transparent 50%);
    animation: rotateGradient 20s linear infinite;
}

@keyframes rotateGradient {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Floating Particles */
.auth-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #F97316;
    border-radius: 50%;
    opacity: 0.3;
    animation: floatParticle 15s infinite ease-in-out;
}

.particle:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; }
.particle:nth-child(2) { left: 80%; top: 70%; animation-delay: 2s; }
.particle:nth-child(3) { left: 30%; top: 60%; animation-delay: 4s; }
.particle:nth-child(4) { left: 70%; top: 30%; animation-delay: 6s; }
.particle:nth-child(5) { left: 50%; top: 80%; animation-delay: 8s; }

@keyframes floatParticle {
    0%, 100% { transform: translateY(0) translateX(0); opacity: 0.3; }
    50% { transform: translateY(-100px) translateX(50px); opacity: 0.6; }
}

/* Auth Card */
.auth-card {
    position: relative;
    z-index: 2;
    background: rgba(30, 41, 59, 0.9);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    padding: 3rem;
    width: 100%;
    max-width: 480px;
    border: 1px solid rgba(249, 115, 22, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(249, 115, 22, 0.1);
    animation: slideUp 0.6s ease-out;
}

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

.auth-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo-img {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
}

.auth-logo h1 {
    font-size: clamp(1.75rem, 4vw, 2rem);
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.auth-logo p {
    color: var(--gray-400);
    font-size: 1.05rem;
}

/* Form Elements */
.auth-form {
    margin-top: 2rem;
}

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

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--off-white);
    font-weight: 600;
    font-size: 1.05rem;
}

.form-input {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(249, 115, 22, 0.2);
    border-radius: var(--radius-md);
    color: var(--off-white);
    font-size: 1.05rem;
    transition: all var(--transition-normal);
    outline: none;
}

.form-input:focus {
    border-color: #F97316;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.1), 0 0 20px rgba(249, 115, 22, 0.2);
    transform: translateY(-2px);
}

.form-input::placeholder {
    color: var(--gray-400);
}

.input-icon-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    font-size: 1.2rem;
    pointer-events: none;
}

.input-icon-wrapper .form-input {
    padding-left: 50px;
}

.password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    font-size: 1.2rem;
    transition: color var(--transition-normal);
}

.password-toggle:hover {
    color: #F97316;
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 1rem 0;
}

.form-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #F97316;
}

.form-checkbox label {
    color: var(--gray-300);
    cursor: pointer;
    font-size: 1.05rem;
}

.form-link {
    color: #F97316;
    text-decoration: none;
    font-weight: 600;
    transition: color var(--transition-normal);
    font-size: 1.05rem;
}

.form-link:hover {
    color: #FB923C;
    text-decoration: underline;
}

/* Submit Button */
.btn-submit {
    width: 100%;
    padding: 16px;
    background: var(--gradient-accent);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-size: 1.15rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
    position: relative;
    overflow: hidden;
}

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

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.5);
}

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

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

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
    color: var(--gray-400);
    font-size: 1.05rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(249, 115, 22, 0.2);
}

/* Social Login */
.social-login {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.btn-social {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(249, 115, 22, 0.2);
    border-radius: var(--radius-md);
    color: var(--off-white);
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.btn-social:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #F97316;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.2);
}

.btn-social i {
    font-size: 1.3rem;
}

/* Footer Link */
.auth-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(249, 115, 22, 0.1);
    color: var(--gray-400);
    font-size: 1.05rem;
}

.auth-footer a {
    color: #F97316;
    text-decoration: none;
    font-weight: 600;
    transition: color var(--transition-normal);
}

.auth-footer a:hover {
    color: #FB923C;
}

/* Success/Error Messages */
.success-message {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-bottom: 1.5rem;
    color: #10B981;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: slideDown 0.4s ease-out;
}

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

.success-message i {
    font-size: 1.4rem;
}

.error-message {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-bottom: 1.5rem;
    color: #EF4444;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: shake 0.4s ease-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.error-message i {
    font-size: 1.4rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    .auth-container {
        padding: 1.5rem;
    }
    
    .auth-card {
        padding: 2rem 1.5rem;
    }
    
    .form-label,
    .form-input,
    .form-checkbox label,
    .form-link,
    .auth-divider,
    .auth-footer {
        font-size: 1.1rem;
    }
    
    .btn-submit,
    .btn-social {
        font-size: 1.15rem;
        padding: 16px;
    }
    
    .auth-logo p {
        font-size: 1.1rem;
    }
    
    .social-login {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .auth-card {
        padding: 1.5rem 1rem;
    }
}
