/* 
 * Login Page Styles - Modern Enterprise Design
 * For RHD CommandX System
 */

/* Global Font */
body {
    font-family: 'Bai Jamjuree', -apple-system, BlinkMacSystemFont, sans-serif;
    font-feature-settings: 'liga' 1, 'calt' 1;
}

/* ============================================
   ANIMATED BACKGROUND & GRADIENT ORBS
   ============================================ */

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.3;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #FF6B35, transparent);
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #FF8C42, transparent);
    bottom: -150px;
    right: -150px;
    animation-delay: 7s;
}

.orb-3 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, #FFA07A, transparent);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 14s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(150px, -100px) scale(1.1);
    }
    66% {
        transform: translate(-100px, 150px) scale(0.9);
    }
}

/* ============================================
   LEFT SIDE - COMMANDX LOGO & BRANDING
   ============================================ */

.text-gradient {
    background: linear-gradient(135deg, #FF6B35 0%, #FF8C42 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.commandx-logo {
    position: relative;
    width: 120px;
    height: 120px;
}

.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.4), transparent);
    filter: blur(30px);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.2);
    }
}

/* Status Pills */
.status-pill {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 0.875rem;
    color: #fff;
    transition: all 0.3s ease;
}

.status-pill:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 107, 53, 0.3);
    transform: translateX(4px);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-active {
    background: #10b981;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
    animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* ============================================
   RIGHT SIDE - GLASS CARD & FORM
   ============================================ */

.glass-card {
    padding: 2.5rem;
    background: rgba(20, 20, 20, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

/* Form Groups */
.form-group {
    margin-bottom: 0;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.5rem;
    letter-spacing: 0.3px;
}

.input-wrapper {
    position: relative;
}

/* Modern Input Styling */
.input-modern {
    width: 100%;
    height: 3.5rem;
    padding-left: 3rem;
    padding-right: 1rem;
    font-size: 1rem;
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
    outline: none;
}

/* Disable autofill styling */
.input-modern:-webkit-autofill,
.input-modern:-webkit-autofill:hover,
.input-modern:-webkit-autofill:focus,
.input-modern:-webkit-autofill:active {
    -webkit-text-fill-color: #fff !important;
    -webkit-box-shadow: 0 0 0 1000px rgba(255, 255, 255, 0.05) inset !important;
    box-shadow: 0 0 0 1000px rgba(255, 255, 255, 0.05) inset !important;
    background-color: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    transition: background-color 5000s ease-in-out 0s;
}

.input-modern:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: #FF6B35;
    box-shadow: none;
}

.input-modern::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* Input Icons */
.input-icon-modern {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.125rem;
    pointer-events: none;
    transition: color 0.3s;
}

.input-wrapper:focus-within .input-icon-modern {
    color: #FF6B35;
}

/* Password Toggle */
.password-toggle-modern {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.4);
    transition: all 0.3s;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    border: none;
    background: transparent;
}

.password-toggle-modern:hover {
    color: #FF6B35;
    background: rgba(255, 107, 53, 0.1);
}

/* Checkbox */
.checkbox-modern {
    width: 1.25rem;
    height: 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    appearance: none;
    position: relative;
}

.checkbox-modern:checked {
    background: linear-gradient(135deg, #FF6B35, #FF8C42);
    border-color: #FF6B35;
}

.checkbox-modern:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 0.875rem;
    font-weight: bold;
}

.checkbox-modern:hover {
    border-color: #FF6B35;
}

/* Modern Button */
.btn-modern {
    height: 3.5rem;
    font-size: 1.125rem;
    font-weight: 700;
    background: linear-gradient(135deg, #FF6B35 0%, #FF8C42 100%);
    border: none;
    border-radius: 12px;
    color: white;
    letter-spacing: 0.3px;
    box-shadow: 
        0 10px 30px rgba(255, 107, 53, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

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

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

.btn-modern:hover {
    background: linear-gradient(135deg, #FF8C42 0%, #FFB396 100%);
    box-shadow: 
        0 15px 40px rgba(255, 107, 53, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

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

.btn-modern:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Security Notice - Modern */
.security-notice-modern {
    padding: 1rem;
    background: rgba(255, 107, 53, 0.05);
    border: 1px solid rgba(255, 107, 53, 0.2);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

/* ============================================
   ANIMATIONS
   ============================================ */

.animate-fade-in {
    animation: fadeIn 1s ease-out;
}

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

.animate-slide-in {
    animation: slideIn 0.8s ease-out;
}

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

.animate-pulse-slow {
    animation: pulseSlow 3s ease-in-out infinite;
}

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

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1023px) {
    .glass-card {
        padding: 2rem 1.5rem;
    }
    
    .gradient-orb {
        width: 300px !important;
        height: 300px !important;
    }
}

@media (max-width: 640px) {
    .glass-card {
        padding: 1.5rem;
    }
    
    .input-modern {
        height: 3rem;
        font-size: 0.9375rem;
    }
    
    .btn-modern {
        height: 3rem;
        font-size: 1rem;
    }
}

/* Focus styles for accessibility */
.input-modern:focus,
.checkbox-modern:focus {
    outline: none;
}

.checkbox-modern:focus {
    border-color: #FF6B35;
}
