/* Login Page Specific Styles */

:root {
    --primary-color: #f97316;
    /* CallAI Orange from main styles */
    --primary-hover: #ea580c;
    --nile-blue: #1C4DA1;
    --nile-green: #69BF51;
    --input-bg: #f1f5f9;
    /* Light slate/blueish gray for inputs */
    --text-muted: #94a3b8;
}

body {
    font-family: 'Inter', sans-serif;
    color: #1e293b;
    overflow-x: hidden;
}

/* 1. Core Layout Requirements */
/* Ensure no scrolling on desktop by default if content fits */
@media (min-width: 992px) {

    body,
    html {
        height: 100%;
        overflow: hidden;
    }

    .vh-100 {
        height: 100vh !important;
    }
}

/* Left Column Image Handling */
.image-container {
    width: 100%;
    max-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    /* Add some padding so it doesn't touch edges completely if full width */
}

.login-visual {
    max-height: 95vh;
    object-fit: contain;
    width: 100%;
}

/* 2. Form Styling */
.login-wrapper {
    max-width: 360px;
    /* Very compact */
    width: 100%;
}

.bg-light-blue {
    background-color: var(--input-bg) !important;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    /* Smaller text inside inputs */
}

.bg-light-blue:focus {
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.1);
    /* Orange focus ring */
    border: 1px solid var(--primary-color) !important;
}

.form-control-lg {
    font-size: 0.95rem;
    padding: 0.8rem 1rem;
    border-radius: 12px;
}

/* Label styling */
.form-label {
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    letter-spacing: 0.01em;
}

/* Button Styling */
.btn-primary {
    background: linear-gradient(135deg, var(--nile-blue) 0%, #2563eb 100%);
    /* Using Nile Blue gradient as requested "Primary blue gradient" */
    border: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #153a7a 0%, #1d4ed8 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(28, 77, 161, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Password Toggle Icon */
#togglePassword {
    z-index: 10;
    cursor: pointer;
}

#togglePassword:hover {
    color: var(--nile-blue) !important;
}

/* 3. Floating Chat Widget */
.btn-chat {
    width: 60px;
    height: 60px;
    background: var(--nile-blue);
    bottom: 30px;
    right: 30px;
    z-index: 1050;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid white;
}

.btn-chat:hover {
    transform: scale(1.1);
    background: var(--primary-color);
    /* Interaction feedback */
}

/* 4. Mobile & Tablet Responsiveness */
@media (max-width: 991.98px) {

    /* Tablet layout adjustments */
    .login-visual {
        max-height: 60vh;
    }
}

@media (max-width: 767.98px) {

    /* Mobile Layout */
    body {
        overflow-y: auto;
        /* Allow scrolling on mobile */
    }

    .vh-100 {
        height: auto !important;
        min-height: 100vh;
    }

    .login-wrapper {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .w-100-mobile {
        width: 100% !important;
    }

    /* Forgot password alignment on mobile - ensuring it behaves well */
    .text-md-start {
        text-align: center !important;
    }

    /* Override for specific elements if needed */
    .d-grid {
        display: grid !important;
    }

    .btn-chat {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
}