/* Design System - All colors in HSL format - Balanced Theme */
:root {
    --background: 220 25% 10%;
    --foreground: 0 0% 95%;
    
    --card: 220 20% 15%;
    --card-foreground: 0 0% 95%;
    
    --popover: 220 20% 12%;
    --popover-foreground: 0 0% 95%;
    
    --primary: 200 80% 55%;
    --primary-foreground: 220 25% 10%;
    --primary-glow: 200 90% 70%;
    
    --secondary: 220 15% 20%;
    --secondary-foreground: 0 0% 95%;
    
    --muted: 220 15% 18%;
    --muted-foreground: 0 0% 60%;
    
    --accent: 150 70% 50%;
    --accent-foreground: 220 25% 10%;
    --accent-glow: 150 80% 60%;
    
    --destructive: 0 84.2% 60.2%;
    --destructive-foreground: 0 0% 95%;
    
    --border: 220 15% 25%;
    --input: 220 15% 20%;
    --ring: 200 80% 55%;
    
    --radius: 0.75rem;
    
    /* Custom design tokens */
    --gradient-primary: linear-gradient(135deg, hsl(200 80% 50%), hsl(150 70% 50%));
    --gradient-dark: linear-gradient(180deg, hsl(220 25% 8%), hsl(220 25% 12%));
    --glow-primary: 0 0 40px hsl(200 80% 55% / 0.3);
    --glow-accent: 0 0 30px hsl(150 70% 50% / 0.25);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Override all other styles for login page */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: hsl(var(--background)) !important;
    color: hsl(var(--foreground)) !important;
    min-height: 100vh !important;
    line-height: 1.5;
    overflow-x: hidden;
}

/* Login Container */
.login-container {
    min-height: 100vh !important;
    width: 100% !important;
    background: var(--gradient-dark) !important;
    background-image: url('https://detectme.b-cdn.net/bg_site/Untitled%20design%20(3).png') !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 2rem 1rem !important;
    position: relative !important;
    overflow: hidden !important;
    margin: 0 !important;
}

.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-dark);
    opacity: 0.85;
    z-index: 0;
}

@media (min-width: 1024px) {
    .login-container {
        padding: 2rem !important;
        background-attachment: scroll !important;
    }
}

/* Background Elements */
.background-elements {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.bg-blob {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.05;
    animation: float 3s ease-in-out infinite;
}

.bg-blob-1 {
    top: -50%;
    left: -50%;
    background: hsl(var(--primary));
}

.bg-blob-2 {
    bottom: -50%;
    right: -50%;
    background: hsl(var(--accent));
    animation-delay: 1s;
}

/* Login Layout - Two columns on desktop */
.login-layout {
    width: 100%;
    max-width: 1400px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    position: relative;
    z-index: 2;
    padding: 0 1rem;
}

@media (min-width: 1024px) {
    .login-layout {
        grid-template-columns: 1fr 1fr;
        align-items: center;
        gap: 4rem;
    }
}

/* Marketing Section */
.marketing-section {
    display: none;
    animation: fade-in 0.6s ease-out 0.2s both;
    position: relative;
    z-index: 2;
}

@media (min-width: 1024px) {
    .marketing-section {
        display: block;
    }
}

.marketing-content {
    color: hsl(var(--foreground));
    padding: 2rem 0;
}

.marketing-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--accent)));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fade-in 0.6s ease-out 0.3s both;
    white-space: nowrap;
}

.marketing-subtitle {
    font-size: 1.25rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.6;
    margin-bottom: 3rem;
    animation: fade-in 0.6s ease-out 0.4s both;
}

/* Features List */
.features-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
    animation: fade-in 0.6s ease-out 0.5s both;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: hsla(var(--card) / 0.3);
    border: 1px solid hsl(var(--border));
    border-radius: 0.75rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: var(--transition-smooth);
}

.feature-item:hover {
    background: hsla(var(--card) / 0.5);
    border-color: hsl(var(--primary));
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.feature-item i {
    font-size: 1.5rem;
    color: hsl(var(--primary));
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: hsla(var(--primary) / 0.1);
    border-radius: 0.5rem;
}

.feature-item span {
    font-size: 1rem;
    font-weight: 500;
    color: hsl(var(--foreground));
}

/* Stats Section */
.stats-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    animation: fade-in 0.6s ease-out 0.6s both;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: hsla(var(--card) / 0.3);
    border: 1px solid hsl(var(--border));
    border-radius: 1rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: var(--transition-smooth);
}

.stat-item:hover {
    background: hsla(var(--card) / 0.5);
    border-color: hsl(var(--primary));
    transform: translateY(-4px);
    box-shadow: var(--glow-primary);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--accent)));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Login Wrapper */
.login-wrapper {
    width: 100%;
    max-width: 24rem;
    position: relative;
    z-index: 2;
    margin: 0 auto;
}

@media (min-width: 1024px) {
    .login-wrapper {
        max-width: 24rem;
    }
}

/* Login Card - Override all other styles */
.login-container .login-wrapper .login-card,
body .login-container .login-wrapper .login-card,
.login-card {
    background: hsla(var(--card) / 0.4) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    border: 1px solid hsl(var(--border)) !important;
    border-radius: 1rem !important;
    padding: 1.5rem !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5) !important;
    animation: slide-up 0.6s ease-out;
    margin: 0 !important;
    width: 100% !important;
    max-width: none !important;
    color: hsl(var(--card-foreground)) !important;
}

/* Logo Container */
.logo-container {
    display: flex;
    justify-content: center;
    margin-bottom: 1.25rem;
    animation: fade-in 0.5s ease-out;
}

.logo-container img {
    height: 8.5rem;
    width: 8.5rem;
    object-fit: contain;
    animation: glow-pulse 2s ease-in-out infinite;
}

/* Title Container */
.title-container {
    text-align: center;
    margin-bottom: 1.5rem;
    animation: fade-in 0.5s ease-out 0.1s both;
}

.title-container h1,
.title-container .title {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: hsl(var(--foreground)) !important;
    margin-bottom: 0.375rem !important;
}

.title-container p,
.title-container .subtitle {
    color: hsl(var(--muted-foreground)) !important;
    font-size: 0.875rem !important;
}

/* Form Styles */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    animation: fade-in 0.5s ease-out both;
}

.form-group:nth-of-type(1) {
    animation-delay: 0.2s;
}

.form-group:nth-of-type(2) {
    animation-delay: 0.3s;
}

.form-group:nth-of-type(3) {
    animation-delay: 0.4s;
}

.form-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: hsl(var(--foreground));
    line-height: 1;
}

.form-input,
.form-control,
.login-container .form-input,
.login-container .form-control {
    height: 2.75rem !important;
    width: 100% !important;
    border-radius: 0.5rem !important;
    border: 1px solid hsl(var(--border)) !important;
    background: hsla(var(--card) / 0.5) !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
    padding: 0.5rem 0.875rem !important;
    font-size: 0.9375rem !important;
    color: hsl(var(--foreground)) !important;
    transition: var(--transition-smooth);
    outline: none !important;
}

.form-input::placeholder,
.form-control::placeholder {
    color: hsl(var(--muted-foreground));
}

.form-input:focus,
.form-control:focus {
    outline: none;
    border-color: hsl(var(--primary));
    box-shadow: 0 0 0 2px hsl(var(--ring) / 0.2);
}

.form-input.focused,
.form-control.focused {
    border-color: hsl(var(--primary));
    box-shadow: 0 0 0 2px hsl(var(--ring) / 0.2);
}

/* Input Group with Icon */
.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-group .form-control {
    padding-right: 3rem;
}

.input-icon {
    position: absolute;
    right: 1rem;
    color: hsl(var(--muted-foreground));
    pointer-events: none;
    transition: var(--transition-smooth);
}

.input-group.focused .input-icon {
    color: hsl(var(--primary));
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    animation: fade-in 0.5s ease-out 0.4s both;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-check-input {
    width: 1rem;
    height: 1rem;
    border-radius: 0.25rem;
    border: 1px solid hsl(var(--border));
    background: hsla(var(--card) / 0.5);
    cursor: pointer;
    accent-color: hsl(var(--primary));
}

.form-check-label {
    color: hsl(var(--foreground));
    cursor: pointer;
    user-select: none;
}

.forgot-link {
    color: hsl(var(--primary));
    text-decoration: none;
    transition: var(--transition-smooth);
}

.forgot-link:hover {
    color: hsl(var(--primary-glow));
    text-decoration: underline;
}

/* Submit Button */
.btn-submit,
.login-btn,
.login-container .btn-submit,
.login-container .login-btn {
    height: 2.5rem !important;
    width: 100% !important;
    border-radius: 0.5rem !important;
    background: var(--gradient-primary) !important;
    color: hsl(var(--primary-foreground)) !important;
    border: none !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: var(--transition-smooth);
    font-family: inherit !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
}

.btn-submit:hover,
.login-btn:hover {
    box-shadow: var(--glow-primary);
    transform: translateY(-1px);
}

.btn-submit:active,
.btn-submit.active,
.login-btn:active {
    transform: translateY(0);
    box-shadow: 0 0 20px hsl(270 80% 60% / 0.4);
}

.btn-submit:focus,
.login-btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px hsl(var(--ring) / 0.5);
}

.btn-submit:disabled,
.login-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Form Footer */
.form-footer {
    text-align: center;
    margin-top: 0.5rem;
    animation: fade-in 0.5s ease-out 0.5s both;
}

.btn-forgot {
    background: none;
    border: none;
    color: hsl(var(--primary));
    font-size: 0.875rem;
    cursor: pointer;
    text-decoration: none;
    text-underline-offset: 4px;
    transition: var(--transition-smooth);
    font-family: inherit;
    padding: 0;
}

.btn-forgot:hover,
.btn-forgot.hover {
    color: hsl(var(--primary-glow));
    text-decoration: underline;
}

.btn-forgot:focus {
    outline: none;
    text-decoration: underline;
}

/* Error and Success Messages */
.error-message,
.success-message {
    padding: 0.625rem 0.875rem;
    border-radius: 0.5rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    animation: fade-in 0.5s ease-out;
}

.error-message {
    background: hsla(var(--destructive) / 0.1);
    border: 1px solid hsl(var(--destructive));
    color: hsl(var(--destructive-foreground));
}

.success-message {
    background: hsla(142 76% 36% / 0.1);
    border: 1px solid hsl(142 76% 36%);
    color: hsl(142 76% 36%);
}

.error-message.shake {
    animation: shake 0.5s ease-in-out;
}

/* Auth Footer */
.auth-footer {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid hsl(var(--border));
    text-align: center;
    animation: fade-in 0.5s ease-out 0.6s both;
}

.auth-footer p {
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-link {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: hsla(var(--card) / 0.5);
    border: 1px solid hsl(var(--border));
    display: flex;
    align-items: center;
    justify-content: center;
    color: hsl(var(--foreground));
    text-decoration: none;
    transition: var(--transition-smooth);
}

.social-link:hover {
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    transform: translateY(-2px);
    box-shadow: var(--glow-primary);
}

/* Bottom Glow Effect */
.bottom-glow {
    position: absolute;
    bottom: -5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 75%;
    height: 5rem;
    background: hsl(var(--primary) / 0.2);
    filter: blur(80px);
    border-radius: 50%;
    animation: glow-pulse 2s ease-in-out infinite;
}

/* Animations */
@keyframes fade-in {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slide-up {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes glow-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-10px);
    }
    75% {
        transform: translateX(10px);
    }
}

/* Responsive Design */
@media (max-width: 1023px) {
    .marketing-section {
        display: none !important;
    }
    
    .login-layout {
        max-width: 100%;
    }
}

@media (max-width: 640px) {
    .login-card {
        padding: 1.5rem;
    }
    
    .title-container h1,
    .title-container .title {
        font-size: 1.5rem;
    }
    
    .title-container p,
    .title-container .subtitle {
        font-size: 0.875rem;
    }
    
    .form-input,
    .form-control {
        font-size: 0.875rem;
    }
    
    .logo-container img {
        height: 6rem;
        width: 6rem;
    }
    
    .marketing-title {
        font-size: 2rem;
    }
    
    .marketing-subtitle {
        font-size: 1rem;
    }
    
    .features-list {
        grid-template-columns: 1fr;
    }
    
    .stats-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .login-card {
        padding: 1.25rem;
    }
    
    .title-container h1 {
        font-size: 1.25rem;
    }
    
    .login-form {
        gap: 1.25rem;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
}

/* Spinner */
.spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid hsl(var(--primary-foreground) / 0.3);
    border-top-color: hsl(var(--primary-foreground));
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Indicator Progress */
.indicator-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.indicator-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Override Bootstrap and other framework styles */
.login-container * {
    box-sizing: border-box;
}

.login-container .form-label {
    color: hsl(var(--foreground)) !important;
}

.login-container .btn-forgot {
    background: none !important;
    border: none !important;
    color: hsl(var(--primary)) !important;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

