/* =============================================
   ECatalog Login Page – login.css
   Bootstrap 5.3.3 companion stylesheet
   ============================================= */

/* ---- Root / Brand Colors ---- */
:root {
    --primary:   #000000;
    --danger:    #dc3545;
    --header-bg: #cc0000;
    --footer-bg: #f8f9fa;
    --card-border: #000000;
    --label-color: #555;
    --input-focus-shadow: rgba(6, 180, 207, 0.25);
}
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px 30px;
    background-color: #d50c0c;
    padding: 5px 13px;
}
/* ---- Base ---- */
html,
body {
    height: 100%;
    background-color: #f5f0e8;   /* warm cream – matches screenshot background */
}

/* Viewport containment – login page only */
body.login-page {
    height: 100vh;
    overflow-x: hidden;
    overflow-y: hidden;
}

body.login-page #pageContent {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

body.login-page #pageContent > .container-fluid {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

body.login-page #pageContent .row {
    flex: 1 1 auto;
    min-height: 0;
}

/* ---- TOP NAVBAR / HEADER (shared via site-header.css) ---- */
.ecatalog-header {
    background-color: var(--header-bg);
    padding: 6px 20px;
}

.ecatalog-header .logo-left {
    height: 36px;
    background-color: #fff;
    border-radius: 4px;
    padding: 2px 6px;
    object-fit: contain;
}

.ecatalog-header .logo-right {
    height: 34px;
    object-fit: contain;
}

/* ---- HERO / CAROUSEL COLUMN ---- */
.carousel-col img {
    width: 100%;
    height: auto;
    max-height: calc(100vh - 120px);
    display: block;
    object-fit: cover;
    border-radius: 4px;
}

/* Center carousel block vertically inside the column (do not restyle Owl internals) */
.carousel-col {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    height: 100%;
    padding: 12px 16px;
}

    .carousel-col .home-demo {
        width: 100%;
    }

    .carousel-col .owl-carousel {
        margin-top: 0 !important;
        width: 100%;
    }

/* Owl nav arrows */
.owl-theme .owl-nav button {
    background: #d6d6d6 !important;
}

.owl-theme .owl-nav button span {
    font-size: 26px;
    line-height: 1;
    padding: 0;
}

.owl-theme .owl-nav [class*=owl-]:hover {
    color: var(--primary);
}
/* ---- LOGIN CARD – compact & centered ---- */
.login-card {
    border: 2px solid var(--card-border);
    border-radius: 10px;
    background-color: #fff;
    padding: 20px 22px; /* kam padding */
    max-width: 420px; /* ✅ width limit */
    margin: 0 auto; /* ✅ horizontally center */
}

    .login-card .brand-logo {
        width: 160px; /* chota logo */
        height: 55px;
        object-fit: contain;
    }

    .login-card .page-title {
        font-size: 1.1rem; /* chota title */
        font-weight: 700;
        margin-bottom: 12px !important;
    }

    .login-card .form-label {
        font-size: 0.70rem;
        font-weight: 600;
        letter-spacing: 0.06em;
        color: var(--label-color);
        text-transform: uppercase;
        margin-bottom: 3px;
    }

    .login-card .form-control {
        font-size: 0.88rem;
        padding: 7px 10px; /* compact input */
        background-color: #f0f4f8;
        border: 1px solid #d0dae3;
        border-radius: 6px;
    }

    .login-card .mb-3 {
        margin-bottom: 10px !important; /* sections ke beech gap kam */
    }

.btn-signin {
    padding: 8px; /* button chota */
    font-size: 0.95rem;
}
/* ---- CAPTCHA ROW ---- */
.captcha-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.captcha-wrapper img {
    height: 42px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

.captcha-refresh {
    cursor: pointer;
    color: var(--primary);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.captcha-refresh:hover {
    color: #0497ad;
}

/* ---- SIGN-IN BUTTON ---- */
.btn-signin {
    background-color: var(--primary);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 10px;
    width: 100%;
    transition: background-color 0.2s ease;
}

    .btn-signin:hover,
    .btn-signin:focus {
        background-color: #cc0000;
        color: #fff;
    }

/* ---- BLUR OVERLAY (loading state) ---- */
.login-card.blur {
    filter: blur(6px);
    pointer-events: none;
    user-select: none;
}

/* ---- FOOTER ---- */
.ecatalog-footer {
    background-color: var(--footer-bg);
    border-top: 1px solid #e0e0e0;
    padding: 10px 20px;
    font-size: 0.83rem;
    color: #444;
}

.ecatalog-footer a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.ecatalog-footer a:hover {
    text-decoration: underline;
}

/* ---- OTP PAGE extras ---- */
.otp-hint {
    font-size: 0.88rem;
    color: #666;
    margin-bottom: 14px;
}

/* ============================================================
   RESPONSIVE OVERRIDES
   All layout is handled by Bootstrap grid/utility classes.
   Only spacing / size tweaks belong here.
   ============================================================ */

/* Tablet (≤768 px) */
@media (max-width: 768px) {
    .login-card {
        padding: 22px 18px;
    }

    .login-card .brand-logo {
        width: 170px;
        height: 55px;
    }

    .ecatalog-header .logo-left {
        height: 30px;
    }

    .ecatalog-header .logo-right {
        height: 28px;
    }
}

/* Mobile (≤576 px) */
@media (max-width: 576px) {
    .login-card {
        border-left: none;
        border-right: none;
        border-radius: 0;
        padding: 18px 14px;
    }

    .ecatalog-footer {
        text-align: center;
    }
}

/* Short viewports (13–14 inch laptops) */
@media (max-height: 820px) {
    .ecatalog-header {
        padding: 4px 16px;
    }

    .ecatalog-header .logo-left {
        height: 32px;
    }

    .ecatalog-header .logo-right {
        height: 30px;
    }

    .login-card {
        padding: 16px 18px;
    }

    .login-card .brand-logo {
        width: 150px;
        height: 50px;
    }

    .ecatalog-footer {
        padding: 6px 16px;
        font-size: 0.8rem;
    }
}
