﻿/* ── RESET ── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --purple-dark: #4a2d8a;
    --purple-mid: #7b3fa0;
    --purple-light: #a855cc;
    --cyan: #00bcd4;
    --cyan-hover: #00a5bb;
    --text-dark: #1c1c2e;
    --text-mid: #888aaa;
    --border: #e2e4f0;
    --bg-input: #f7f8fc;
    --white: #ffffff;
    --red: #CC0000;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'DM Sans', sans-serif;
    overflow: auto;
}

/* ── FULL-SCREEN BACKGROUND ── */
.log_page_sec {
    position: relative;
    width: 100%;
    min-height: 100vh;
    /* background: url('../images/loginbgimage.png') center center / cover no-repeat ;*/
    background-image: url('images/loginbgimage.png');
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 16px;
}

    /* dark tint so card is readable against any photo */
    .log_page_sec::before {
        content: '';
        position: absolute;
        inset: 0;
        background: rgba(15, 8, 35, 0.30);
        pointer-events: none;
    }

/* ── FLOATING LOGIN CARD ── */
.login_card {
    position: relative;
    z-index: 10;
    width: 420px;
    max-width: calc(100vw - 32px);
    background: rgba(255, 255, 255, 0.96);
    border-radius: 12px;
    padding: 30px 30px 28px;
    box-shadow: 0 10px 48px rgba(0,0,0,0.30), 0 2px 8px rgba(0,0,0,0.12);
    animation: cardFadeUp .5s cubic-bezier(.22,.68,0,.99) both;
    transform: translateX(-40px);
}

@keyframes cardFadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── LOGO ROW ── */
.login_page_logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.logo-bubbles {
    position: relative;
    width: 58px;
    height: 52px;
    flex-shrink: 0;
}

    .logo-bubbles .b {
        position: absolute;
        border-radius: 50%;
    }

    .logo-bubbles .b1 {
        width: 32px;
        height: 32px;
        background: var(--purple-dark);
        top: 0;
        left: 0;
        opacity: .95;
    }

    .logo-bubbles .b2 {
        width: 26px;
        height: 26px;
        background: var(--purple-mid);
        top: 2px;
        left: 20px;
        opacity: .90;
    }

    .logo-bubbles .b3 {
        width: 28px;
        height: 28px;
        background: var(--purple-light);
        top: 22px;
        left: 8px;
        opacity: .88;
    }

.logo-text h1 {
    font-family: 'DM Serif Display', serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
    margin: 0;
}

.logo-text small {
    display: block;
    font-size: 9.5px;
    color: var(--text-mid);
    font-weight: 500;
    letter-spacing: .06em;
    text-transform: uppercase;
    margin-top: 2px;
}

/* ── HEADINGS ── */

.login_sub {
    font-size: 13px;
    color: var(--text-mid);
    margin: 0 0 18px;
}

/* ── FORM ── */
.login_form_list {
    width: 100%;
}

.form-group {
    margin-bottom: 12px;
}

.login_card .form-control {
    width: 75% !important;
    padding: 10px 14px !important;
    border: 1.5px solid var(--border) !important;
    border-radius: 6px !important;
    background: var(--bg-input) !important;
    font-family: 'DM Sans', sans-serif !important;
    font-size: 14px !important;
    color: var(--text-dark) !important;
    height: auto !important;
    box-shadow: none !important;
    transition: border-color .2s, box-shadow .2s;
    display: block;
}

    .login_card .form-control:focus {
        border-color: var(--purple-mid) !important;
        box-shadow: 0 0 0 3px rgba(123,63,160,.10) !important;
        background: var(--white) !important;
        outline: none;
    }

    .login_card .form-control::placeholder {
        color: #bbc;
    }

/* ── PASSWORD WRAPPER ── */
.eyes_dv {
    position: relative;
    display: inline-block;
    width: 75%;
}

    .eyes_dv .form-control {
        width: 100% !important;
        padding-right: 44px !important;
    }

/* Eye toggle button */
.show.shows {
    position: absolute !important;
    right: 4px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    border: none !important;
    background: transparent !important;
    height: 36px;
    width: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-mid);
    cursor: pointer;
    padding: 0;
}

.eye_open {
    font-size: 14px;
    color: var(--text-mid);
}

/* Forgot password — beside the password field */
.eyes_dv > label {
    position: absolute;
    left: calc(100% + 10px);
    bottom: 0;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 500;
    color: var(--purple-mid);
    cursor: pointer;
    line-height: 40px;
    margin: 0;
}

    .eyes_dv > label:hover {
        text-decoration: underline;
    }

/* Validator messages */
.login_card span[id*="validate"],
.login_card span[id*="Validate"] {
    font-size: 12px;
    color: var(--red) !important;
    display: block;
    margin-top: 3px;
}

/* ── LOGIN BUTTON ── */
.login_button_submit {
    margin-top: 16px;
    padding: 0 !important;
    display: flex;
    justify-content: flex-start;
}

.btn_login {
    width: 200px !important;
    padding: 12px 0 !important;
    background: var(--cyan) !important;
    color: var(--white) !important;
    font-family: 'DM Sans', sans-serif !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: .12em !important;
    text-transform: uppercase !important;
    border: none !important;
    border-radius: 6px !important;
    cursor: pointer;
    transition: background .2s, box-shadow .2s, transform .1s;
    box-shadow: 0 4px 16px rgba(0,188,212,.40) !important;
    text-align: center;
    display: block;
}

    .btn_login:hover {
        background: var(--cyan-hover) !important;
        box-shadow: 0 6px 22px rgba(0,188,212,.50) !important;
    }

    .btn_login:active {
        transform: scale(.98);
    }

/* Error label */
#lbl_error {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    color: var(--red);
}

/* ── MODALS ── */
.modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 8px 32px rgba(74,45,138,.18);
    font-family: 'DM Sans', sans-serif;
}

.modal-header {
    background: var(--purple-dark);
    border-radius: 12px 12px 0 0;
    padding: 14px 20px;
}

    .modal-header h4 {
        color: var(--white);
        font-weight: 600;
        margin: 0;
    }

    .modal-header .close {
        color: var(--white);
        opacity: .8;
    }

        .modal-header .close:hover {
            opacity: 1;
        }

.form-control1 {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    margin-bottom: 10px;
    outline: none;
}

    .form-control1:focus {
        border-color: var(--purple-mid);
        box-shadow: 0 0 0 3px rgba(123,63,160,.12);
    }

.modal-body .btn-default {
    background: var(--cyan);
    color: var(--white);
    border: none;
    border-radius: 8px;
    padding: 9px 22px;
    font-weight: 600;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
}

    .modal-body .btn-default:hover {
        background: var(--cyan-hover);
    }

.close1 {
    display: block;
    margin-top: 12px;
    font-size: 13px;
    color: var(--purple-mid);
    text-align: center;
}

/* ── RESPONSIVE ── */
@media (max-width: 500px) {
    .login_card {
        padding: 24px 18px 20px;
    }

        .login_card .form-control {
            width: 100% !important;
        }

    .eyes_dv {
        width: 100%;
    }

        .eyes_dv > label {
            position: static;
            display: block;
            text-align: right;
            line-height: normal;
            margin-top: 6px;
        }

    .btn_login {
        width: 100% !important;
    }

    .login_button_submit {
        justify-content: center;
    }
}
