/* ============================================
   ISP Digital — Modern Login Page v2
   ============================================ */

/* ---- Base ---- */
body {
    overflow-x: hidden;
    box-sizing: border-box;
    background: #f0f2f5;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.login-page-main-section {
    height: 100vh;
}

.login-page-main-section .container-fluid {
    padding-left: 0;
    padding-right: 0;
}

/* ============================================
   Left Panel — Branded
   ============================================ */
.login-left-wrapper {
    background: linear-gradient(160deg, #071a2c 0%, #0F2D46 35%, #164a70 65%, #0d2a42 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 30px !important;
    position: relative;
    overflow: hidden;
}

/* Decorative circles */
.login-left-wrapper::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.login-left-wrapper::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -80px;
    width: 450px;
    height: 450px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.login-left-section-container {
    position: relative;
    z-index: 1;
    text-align: center;
}

/* ---- Logo ---- */
.logo-container {
    border: 3px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    height: 160px;
    width: 160px;
    display: flex;
    background: #ffffff;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 0 0 8px rgba(255, 255, 255, 0.06),
        0 12px 40px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo-container:hover {
    transform: scale(1.04);
    box-shadow:
        0 0 0 10px rgba(255, 255, 255, 0.08),
        0 16px 50px rgba(0, 0, 0, 0.35);
}

.logo-container img {
    width: auto;
    padding: 15%;
    max-height: 100%;
    height: 120px;
    margin: 0 auto;
}

/* ---- Company Name & Tagline ---- */
.company-name {
    font-weight: 700;
    letter-spacing: 0.5px;
    font-size: 26px;
    margin-top: 24px;
    margin-bottom: 4px;
    color: #ffffff;
}

.isp-slogan {
    margin-top: 8px;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.3px;
    color: rgba(255, 255, 255, 0.5);
}

/* ---- Decorative divider below company name ---- */
.login-left-des-container::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
    border-radius: 2px;
    margin: 20px auto 0;
}

/* ---- Version Badge ---- */
.p-version {
    position: absolute;
    bottom: 20px;
    left: 30px;
    color: rgba(255, 255, 255, 0.35);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.p-version:hover {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

/* ---- Play Store Badge ---- */
.play-store-logo {
    height: 48px;
    opacity: 0.9;
    transition: all 0.2s ease;
}

.play-store-logo:hover {
    transform: translateY(-2px);
    opacity: 1;
}


/* ============================================
   Right Panel — Login Form
   ============================================ */
.login-right-wrapper {
    padding: 60px 80px 60px 80px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    position: relative;
}

/* ---- Form Card Container ---- */
.login-form-card {
    width: 100%;
    max-width: 440px;
    background: #ffffff;
    border-radius: 16px;
    padding: 40px 36px 32px;
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.04),
        0 6px 24px rgba(0, 0, 0, 0.06);
}

/* ---- Form Header ---- */
.login-form-header {
    margin-bottom: 28px;
}

.login-title {
    font-size: 26px;
    font-weight: 700;
    color: #0F2D46;
    margin-bottom: 6px;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.login-subtitle {
    font-size: 14px;
    color: #94a3b8;
    font-weight: 400;
    margin-bottom: 0;
}

/* ---- Card (bootstrap override) ---- */
.login-right-wrapper .card,
.login-form-card .card {
    height: auto;
    margin: 0;
    width: 100%;
    border: none;
    background-color: transparent;
}

.login-right-wrapper .card-body,
.login-form-card .card-body {
    padding: 0;
}

/* ---- Form Inputs ---- */
.login-right-wrapper .input-group,
.login-form-card .input-group {
    margin-bottom: 18px;
}

.input-group-prepend span {
    width: 48px;
    background-color: #f8fafc;
    color: #94a3b8;
    border: 1.5px solid #e2e8f0 !important;
    border-right: none !important;
    border-radius: 10px 0 0 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

.input-group-prepend span i {
    font-size: 14px;
    transition: all 0.25s ease;
}

.login-right-wrapper .form-control,
.login-form-card .form-control {
    border: 1.5px solid #e2e8f0;
    border-left: none;
    border-radius: 0 10px 10px 0;
    padding: 13px 16px;
    font-size: 14px;
    color: #1e293b;
    background-color: #fff;
    height: auto;
    transition: all 0.25s ease;
}

.login-right-wrapper .form-control::placeholder,
.login-form-card .form-control::placeholder {
    color: #cbd5e1;
    font-weight: 400;
}

/* Focus state — navy accent on icon, border highlight */
.login-right-wrapper .form-control:focus,
.login-form-card .form-control:focus {
    border-color: #3b82f6;
    box-shadow: none;
}

.login-form-card .input-group:focus-within .input-group-prepend span,
.login-right-wrapper .input-group:focus-within .input-group-prepend span {
    border-color: #3b82f6 !important;
    background-color: #3b82f6;
    color: #ffffff;
}

.login-form-card .input-group:focus-within .form-control,
.login-right-wrapper .input-group:focus-within .form-control {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
}

input:focus {
    outline: 0 0 0 0 !important;
    box-shadow: none !important;
}

/* ---- Remember Me / Forgot Password ---- */
.remember {
    color: #64748b;
    margin-bottom: 24px;
    font-size: 13px;
    margin-left: 0 !important;
    padding-left: 0 !important;
}

.remember .col-sm-6 {
    padding-left: 0 !important;
}

.remember .d-flex {
    margin-left: 0 !important;
    padding-left: 0 !important;
}

.remember input,
.remember input[type="checkbox"],
.remember #RememberMe {
    width: 16px !important;
    height: 16px !important;
    margin: 0 6px 0 0 !important;
    padding: 0 !important;
    position: relative !important;
    margin-left: 0 !important;
    accent-color: #3b82f6;
    cursor: pointer;
}

.remember a {
    color: #3b82f6;
    font-weight: 500;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.15s ease;
}

.remember a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* ---- Login Button ---- */
.login_btn {
    color: #ffffff;
    background: linear-gradient(135deg, #0F2D46 0%, #164a70 100%);
    width: 100%;
    padding: 13px 24px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.3px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(15, 45, 70, 0.3);
    position: relative;
    overflow: hidden;
}

.login_btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s ease;
}

.login_btn:hover {
    background: linear-gradient(135deg, #164a70 0%, #0F2D46 100%);
    color: #ffffff;
    box-shadow: 0 6px 24px rgba(15, 45, 70, 0.4);
    transform: translateY(-2px);
}

.login_btn:hover::after {
    left: 100%;
}

.login_btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(15, 45, 70, 0.3);
}

/* ---- Client Registration Button ---- */
.upper-btn {
    color: #475569;
    background: #ffffff;
    width: auto;
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 600;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease;
}

.upper-btn:hover {
    color: #0F2D46;
    background-color: #f8fafc;
    border-color: #0F2D46 !important;
    box-shadow: 0 4px 12px rgba(15, 45, 70, 0.12);
    transform: translateY(-1px);
}

.client-reg {
    position: absolute;
    top: 24px;
    right: 30px;
    z-index: 2;
}

/* ---- Error Message ---- */
.login-error-msg-design {
    font-size: 13px !important;
    font-weight: 500 !important;
    padding: 10px 14px;
    border-radius: 8px;
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626 !important;
    margin-bottom: 14px;
    line-height: 1.4 !important;
    min-height: 0 !important;
    visibility: visible !important;
    opacity: 1 !important;
}

#spnLoginErrorTxt,
#spnLoginErrorTxtMobile,
#spnCustomLoginMSG {
    color: #dc2626 !important;
    font-size: 13px !important;
}

/* ---- Copyright ---- */
.copyright {
    position: absolute;
    bottom: 2%;
    right: 2%;
    font-size: 12px;
    color: #94a3b8;
}

/* ---- Social Icons (legacy — keep safe) ---- */
.social_icon span {
    font-size: 60px;
    margin-left: 10px;
    color: #143652f0;
}

.social_icon span:hover {
    color: white;
    cursor: pointer;
}

.card-header h3 {
    color: white;
}

.social_icon {
    position: absolute;
    right: 20px;
    top: -45px;
}

.links {
    color: white;
}

.links a {
    margin-left: 4px;
    text-decoration: none;
}

.logo__image__overflow {
    overflow: hidden !important;
}


/* ============================================
   Mobile Login
   ============================================ */

.login-for-mobile {
    background: linear-gradient(160deg, #071a2c 0%, #0F2D46 35%, #164a70 65%, #0d2a42 100%);
}

.login-form-wrapper-mobile .card {
    height: auto;
    margin-top: auto;
    margin-bottom: auto;
    width: 100%;
    border: none;
    margin-top: 20px;
    background-color: transparent;
}

.client-reg-mobile {
    align-content: flex-end;
}

.forgotpassMob {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.forgotpassMob:hover,
.forgotpassMob:focus {
    color: #ffffff;
}

@media (min-width: 768px) {
    .login-for-mobile {
        display: none;
    }
}


/* ============================================
   Responsive Breakpoints
   ============================================ */

@media screen and (min-width: 1400px) {
    .login-form-card {
        padding: 48px 44px 40px;
    }
}

@media screen and (min-width: 992px) and (max-width: 1199px) {
    .company-name {
        font-size: 22px;
    }

    .login-right-wrapper {
        padding: 40px 50px !important;
    }

    .logo-container {
        height: 140px;
        width: 140px;
    }

    .logo-container img {
        height: 100px;
    }

    .login-form-card {
        max-width: 400px;
        padding: 32px 28px 28px;
    }
}

@media screen and (min-width: 768px) and (max-width: 991px) {
    .company-name {
        font-size: 20px;
    }

    .isp-slogan {
        font-size: 13px;
    }

    .login-right-wrapper {
        padding: 30px 30px !important;
    }

    .login-title {
        font-size: 22px;
    }

    .logo-container {
        height: 130px;
        width: 130px;
    }

    .logo-container img {
        height: 95px;
    }

    .login-form-card {
        max-width: 380px;
        padding: 28px 24px 24px;
    }

    .p-version {
        left: 15px;
    }
}

@media (max-width: 767px) {
    .login-for-pc {
        display: none;
    }

    .logo-container {
        height: 130px;
        width: 130px;
        border-color: rgba(255, 255, 255, 0.15);
        box-shadow:
            0 0 0 6px rgba(255, 255, 255, 0.05),
            0 8px 30px rgba(0, 0, 0, 0.3);
    }

    .logo-container img {
        padding: 15%;
        height: 95px;
    }

    .input-group-prepend span {
        background-color: rgba(255, 255, 255, 0.1);
        color: rgba(255, 255, 255, 0.7);
        border-color: rgba(255, 255, 255, 0.15) !important;
    }

    .login-form-wrapper-mobile .form-control {
        background-color: rgba(255, 255, 255, 0.07);
        border-color: rgba(255, 255, 255, 0.15);
        color: #ffffff;
    }

    .login-form-wrapper-mobile .form-control::placeholder {
        color: rgba(255, 255, 255, 0.4);
    }

    .login-form-wrapper-mobile .form-control:focus {
        background-color: rgba(255, 255, 255, 0.12);
        border-color: rgba(255, 255, 255, 0.4);
    }

    .login-form-wrapper-mobile .input-group:focus-within .input-group-prepend span {
        background-color: rgba(255, 255, 255, 0.2);
        border-color: rgba(255, 255, 255, 0.4) !important;
        color: #ffffff;
    }

    .login-form-wrapper-mobile .input-group:focus-within .form-control {
        border-color: rgba(255, 255, 255, 0.4) !important;
        box-shadow: none !important;
    }

    .remember {
        color: rgba(255, 255, 255, 0.7) !important;
    }

    .remember a {
        color: rgba(255, 255, 255, 0.9);
    }

    .login_btn {
        background: #ffffff;
        color: #0F2D46;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    }

    .login_btn:hover {
        background: #f1f5f9;
        color: #0F2D46;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
    }

    .upper-btn {
        color: #ffffff;
        background: transparent;
        border-color: rgba(255, 255, 255, 0.4) !important;
    }

    .upper-btn:hover {
        background-color: rgba(255, 255, 255, 0.12);
        border-color: rgba(255, 255, 255, 0.7) !important;
        color: #ffffff;
    }

    .p-version {
        margin-bottom: 10px;
        left: 15px;
        color: rgba(255, 255, 255, 0.3);
    }
}

@media (max-width: 575px) {
    .login-form-wrapper-mobile .card {
        margin-top: 10px;
    }

    .p-version {
        margin-bottom: 5px;
        left: 10px;
    }

    .copyright {
        bottom: -5px;
    }

    .logo-container {
        height: 110px;
        width: 110px;
    }

    .logo-container img {
        height: 75px;
    }
}

/* ---- Scheduler Modal (Emergency Notice) ---- */
.scheduler-header {
    border: none !important;
    background: linear-gradient(135deg, #0F2D46 0%, #164a70 100%);
    color: #fff;
    padding: 16px 24px;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
}
