:root {
    /* Brand Palette - Adapted to Logo */
    --primary-color: #005596;
    /* Royal Blue from 'ticket' */
    --secondary-color: #55a630;
    /* Vibrant Green from 'tu' */
    --accent-color: #ff9f1c;
    /* Orange from arrows/sun */
    --accent-hover: #e08e0b;

    --bg-gradient-start: #003554;
    --bg-gradient-end: #001d2d;

    --text-primary: #0f172a;
    --text-secondary: #64748b;

    --card-bg: rgba(255, 255, 255, 0.90);
    --card-border: rgba(255, 255, 255, 0.8);
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-primary);
    min-height: 100vh;
    background-color: #f1f5f9;
    /* Slate 100 - Clean Layout for Dashboard */
    background-image: radial-gradient(at top left, #e2e8f0, transparent), radial-gradient(at bottom right, #cbd5e1, transparent);
    background-size: cover;
    background-attachment: fixed;
}

/* Specific styling for Login Page */
/* Specific styling for Login Page */
/* Specific styling for Login Page */
body.login-body {
    background: linear-gradient(135deg, #f0f4f8 0%, #d9e2ec 100%);
    /* Clean, light corporate background */
    position: relative;
}

/* Remove overlay */
body.login-body::before {
    display: none;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Glassmorphism Card */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 24px;
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06),
        0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--card-border);
    position: relative;
    overflow: hidden;
}

body:not(.login-body) .glass-card {
    background: rgba(255, 255, 255, 0.65);
    border-color: rgba(255, 255, 255, 1);
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.05),
        0 10px 15px -3px rgba(0, 0, 0, 0.08);
}

/* Shine effect on card top */
.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
}

/* Typography & Elements */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn-primary-custom {
    background: var(--accent-color);
    border: none;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.5px;
}

.btn-primary-custom:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(249, 115, 22, 0.3);
    color: white;
}

.btn-primary-custom:active {
    transform: translateY(0);
}

/* Input Groups */
.input-group-text {
    border-color: #e2e8f0;
    background: #f8fafc;
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}

.form-control {
    border-color: #e2e8f0;
    background: #f8fafc;
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.form-control:focus {
    background: #fff;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
    z-index: 1;
    /* Keep above adjacent addons */
}

.input-group:focus-within .input-group-text {
    border-color: var(--accent-color);
    background: #fff;
}

.input-group:focus-within i {
    color: var(--accent-color) !important;
}

/* Animations */
.animate-fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo-animate {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Demo Users Buttons */
.badge-pill {
    border-radius: 50px;
    border: 1px solid #e2e8f0;
    background: rgba(255, 255, 255, 0.5);
}

.badge-pill:hover {
    background: #fff;
    border-color: var(--accent-color);
    color: var(--accent-color) !important;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .glass-card {
        padding: 1.5rem !important;
    }

    .login-header h2 {
        font-size: 1.75rem;
    }
}

/* OCR Box (Legacy style support if needed elsewhere) */
/* OCR Box (Legacy style support if needed elsewhere) */
.ocr-result-box {
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

/* --- Premium Login Enhancements --- */

/* Floating Inputs */
.form-floating-custom {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-control-custom {
    width: 100%;
    padding: 1rem 1rem 0.6rem;
    font-size: 1rem;
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.form-control-custom:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(85, 166, 48, 0.6);
    /* Green Brand Glow */
    box-shadow: 0 0 15px rgba(85, 166, 48, 0.2);
}

.form-floating-custom label {
    position: absolute;
    top: 0.8rem;
    left: 1rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    pointer-events: none;
    transition: all 0.3s ease;
    transform-origin: left top;
}

.form-control-custom:focus~label,
.form-control-custom:not(:placeholder-shown)~label {
    transform: translateY(-0.85rem) scale(0.75);
    color: #55a630;
    /* Green Brand */
    font-weight: 600;
}

/* Custom Checkbox */
.custom-checkbox .form-check-input {
    background-color: transparent;
    border-color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
}

.custom-checkbox .form-check-input:checked {
    background-color: #005596;
    /* Blue Brand */
    border-color: #005596;
}

.custom-checkbox .form-check-input:focus {
    box-shadow: 0 0 0 0.25rem rgba(0, 85, 150, 0.25);
}

/* Staggered Animations */
.animate-delay-1 {
    animation-delay: 0.1s;
    animation-fill-mode: backwards;
}

.animate-delay-2 {
    animation-delay: 0.2s;
    animation-fill-mode: backwards;
}

.animate-delay-3 {
    animation-delay: 0.3s;
    animation-fill-mode: backwards;
}

.animate-delay-4 {
    animation-delay: 0.4s;
    animation-fill-mode: backwards;
}

.animate-delay-5 {
    animation-delay: 0.5s;
    animation-fill-mode: backwards;
}

/* Button Glow Effect */
.btn-glow:hover {
    box-shadow: 0 0 20px rgba(249, 115, 22, 0.4);
    transform: translateY(-1px);
}