/* Modern login page styles */
.login-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 25%, #1e40af 100%);
    position: relative;
    overflow: hidden;
}

.bg-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20px 20px, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 40px 40px;
}

.floating-orb-1 {
    position: absolute;
    top: 25%;
    left: 25%;
    width: 384px;
    height: 384px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(60px);
    animation: pulse 4s ease-in-out infinite;
}

.floating-orb-2 {
    position: absolute;
    top: 75%;
    right: 25%;
    width: 384px;
    height: 384px;
    background: radial-gradient(circle, rgba(147, 51, 234, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(60px);
    animation: pulse 4s ease-in-out infinite 2s;
}

.floating-orb-3 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 384px;
    height: 384px;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(60px);
    animation: pulse 4s ease-in-out infinite 4s;
}

.content-container {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
}

.login-card {
    width: 100%;
    max-width: 448px;
}

.logo-container {
    text-align: center;
    margin-bottom: 2rem;
}

.logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #1d4ed8 100%);
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    margin-bottom: 1.5rem;
    position: relative;
    transition: transform 0.3s ease;
}

.logo-icon:hover {
    transform: scale(1.05);
}

.logo-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
    border-radius: 1rem;
    filter: blur(8px);
    opacity: 0.5;
}

.logo-svg {
    position: relative;
    z-index: 10;
    width: 2.5rem;
    height: 2.5rem;
    color: white;
}

.main-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #dbeafe 50%, #e0e7ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    color: #94a3b8;
    font-size: 1.125rem;
    font-weight: 500;
}

.debug-info {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid #374151;
    border-radius: 0.75rem;
    backdrop-filter: blur(12px);
}

.debug-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #60a5fa;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.debug-content {
    color: #cbd5e1;
    font-size: 0.75rem;
}

.debug-content > div {
    margin-bottom: 0.25rem;
}

.form-container {
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(71, 85, 105, 0.5);
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 0.5rem;
}

.input-container {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    width: 1.25rem;
    height: 1.25rem;
    pointer-events: none;
    transition: color 0.2s ease;
}

.form-input {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    background: rgba(51, 65, 85, 0.5);
    border: 1px solid #475569;
    color: white;
    border-radius: 0.75rem;
    outline: none;
    transition: all 0.2s ease;
    font-size: 1rem;
}

.form-input::placeholder {
    color: #94a3b8;
}

.form-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
}

.form-input:focus + .input-icon {
    color: #60a5fa;
}

.form-input:hover {
    border-color: #64748b;
}

.checkbox-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.checkbox-group {
    display: flex;
    align-items: center;
}

.checkbox {
    width: 1rem;
    height: 1rem;
    color: #3b82f6;
    background: #374151;
    border: 1px solid #475569;
    border-radius: 0.25rem;
    margin-right: 0.75rem;
}

.checkbox-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #cbd5e1;
}

.forgot-password {
    font-size: 0.875rem;
    font-weight: 500;
    color: #60a5fa;
    text-decoration: none;
    transition: color 0.2s ease;
}

.forgot-password:hover {
    color: #93c5fd;
}

.submit-button {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #1d4ed8 0%, #7c3aed 100%);
    color: white;
    font-weight: 600;
    border-radius: 0.75rem;
    border: none;
    cursor: pointer;
    outline: none;
    transition: all 0.2s ease;
    box-shadow: 0 10px 25px -12px rgba(0, 0, 0, 0.25);
    margin-bottom: 1rem;
}

.submit-button:hover {
    background: linear-gradient(135deg, #1e40af 0%, #6d28d9 100%);
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.4);
    transform: translateY(-1px);
}

.submit-button:disabled {
    opacity: 0.75;
    cursor: not-allowed;
    transform: none;
}

.submit-loading {
    margin-left: 0.5rem;
    animation: spin 1s linear infinite;
}

.error-container {
    background: rgba(127, 29, 29, 0.3);
    border: 1px solid rgba(239, 68, 68, 0.5);
    color: #fecaca;
    padding: 1rem;
    border-radius: 0.75rem;
    backdrop-filter: blur(12px);
    margin-bottom: 1.5rem;
}

.error-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.error-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: #f87171;
}

.csrf-recovery {
    text-align: center;
    margin-top: 1rem;
}

.csrf-recovery button {
    font-size: 0.875rem;
    color: #60a5fa;
    text-decoration: underline;
    font-weight: 500;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s ease;
}

.csrf-recovery button:hover {
    color: #93c5fd;
}

.footer {
    text-align: center;
    margin-top: 1.5rem;
    color: #64748b;
    font-size: 0.875rem;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.1;
        transform: scale(1);
    }
    50% {
        opacity: 0.2;
        transform: scale(1.05);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 640px) {
    .content-container {
        padding: 1.5rem 1rem;
    }
    
    .form-container {
        padding: 1.5rem;
    }
    
    .main-title {
        font-size: 1.875rem;
    }
}

/* Custom pulse animation for orbs */
@keyframes pulse {
    0%, 100% {
        opacity: 0.1;
        transform: scale(1);
    }
    50% {
        opacity: 0.2;
        transform: scale(1.05);
    }
}

/* Smooth transitions for all interactive elements */
* {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhanced hover effects */
.group:hover .text-slate-400 {
    color: rgb(148 163 184);
}

/* Custom scrollbar for modern look */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgb(30 41 59);
}

::-webkit-scrollbar-thumb {
    background: rgb(71 85 105);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgb(100 116 139);
}
