/* Precision Responsive CBT Login - Anchored to 1920x1080 */

:root {
    /* Baseline Scaling: 1rem = 16px @ 1920px */
    font-size: 0.833vw;
}

/* Small Mobile (320px - 480px) */
@media (max-width: 480px) {
    :root {
        font-size: clamp(13px, 3.5vw, 14px);
    }
}

/* Mobile/Tablet Portrait (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    :root {
        font-size: clamp(14px, 2vw, 15px);
    }
}

/* Tablet Landscape/Laptops (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    :root {
        font-size: clamp(12px, 1.2vw, 14px);
    }
}

/* Standard Laptops (1025px - 1440px) */
@media (min-width: 1025px) and (max-width: 1440px) {
    :root {
        font-size: clamp(12px, 0.9vw, 15px);
    }
}

/* Large Desktop (1441px - 1920px) */
@media (min-width: 1441px) and (max-width: 1920px) {
    :root {
        font-size: clamp(14px, 0.833vw, 16px);
    }
}

/* Ultra Wide (> 1920px) */
@media (min-width: 1921px) {
    :root {
        font-size: 18px;
    }
}

/* Zero Out Odoo Defaults */
html,
body {
    height: 100% !important;
    background: #ffffff !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Eliminate all peripheral Odoo UI elements */
header,
footer,
#footer,
.o_footer,
.container.mb-4,
.navbar {


    display: none !important;
}

/* Master Centering Container */
.oe_website_login_container {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 100vh !important;
    width: 100vw !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    background: #ffffff !important;
    padding: 2rem !important;
}

/* Form Card - Proportional to 1920 Reference */
.oe_login_form,
form.oe_login_form {
    display: block !important;
    width: 100% !important;
    /* (~500px at 1920res) = (500/16)rem = 31.25rem */
    max-width: 32rem !important;
    min-width: 280px !important;

    background: #ffffff !important;
    padding: 3.5rem !important;
    border-radius: 1.5rem !important;
    box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.06) !important;
    border: 1px solid #f1f5f9 !important;
    margin: 0 auto !important;
}

/* labels - Precision match to reference */
.oe_login_form label {
    display: block !important;
    font-weight: 800 !important;
    color: #1e293b !important;
    margin-bottom: 0.8rem !important;
    font-size: 1.1rem !important;
    text-align: left !important;
}

/* Inputs - Precision match to reference */
.oe_login_form input.form-control {
    height: 3.4rem !important;
    border-radius: 0.6rem !important;
    border: 1px solid #e2e8f0 !important;
    background-color: #f8fafc !important;
    margin-bottom: 1.8rem !important;
    font-size: 1.1rem !important;
    padding: 0 1.2rem !important;
    box-shadow: none !important;
    color: #334155 !important;
}

.oe_login_form input.form-control:focus {
    background-color: #fff !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.08) !important;
    outline: none !important;
}

/* Submit Button - Precision match to reference */
.oe_login_form button[type="submit"] {
    height: 3.6rem !important;
    border-radius: 0.6rem !important;
    background: #4f46e5 !important;
    /* Professional CBT Indigo */
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    width: 100% !important;
    margin-top: 1.2rem !important;
    color: #ffffff !important;
    border: none !important;
    text-transform: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer !important;
}

.oe_login_form button[type="submit"]:hover {
    background: #4338ca !important;
    transform: translateY(-1px) scale(1.01);
    box-shadow: 0 0.8rem 2rem rgba(79, 70, 229, 0.25) !important;
}

/* Alert/Error Boxes */
.alert-danger {
    background-color: #fee2e2 !important;
    border: 1px solid #fecaca !important;
    color: #b91c1c !important;
    border-radius: 0.5rem !important;
    padding: 1rem !important;
    margin-bottom: 2rem !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
}

/* Remove all interfering Odoo wrappers */
.card,
.o_database_list,
.row,
.col-12 {
    box-shadow: none !important;
    border: none !important;
    background: transparent !important;
    margin: 0 !important;
    padding: 0 !important;
}