﻿
* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
}

/* ---------- Page background ---------- */
.login-back {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 15px;
    background-color: #12335c;
    background-image: linear-gradient(135deg, rgba(18,51,92,0.20), rgba(9,28,54,0.30)), url('../../images/login-back.jpg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* ---------- Loading overlay ---------- */
#imgdiv {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
}

    #imgdiv img {
        width: 60px;
        height: 60px;
    }

/* ---------- Logo ---------- */
.login-logo {
    text-align: center;
    margin-bottom: 14px;
}

    .login-logo img {
        max-width: 260px;
        width: 100%;
        filter: drop-shadow(0 2px 6px rgba(0,0,0,0.35));
    }

/* ---------- Card ---------- */
.login-box {
    width: 380px;
    max-width: 100%;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(0,0,0,0.35);
}

.login-tab {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    padding: 16px 20px;
    background: linear-gradient(90deg, #1F4E79, #2c6ea3);
    text-align: center;
    letter-spacing: 0.3px;
}

/* language switcher row */
.login-box > .col-sm-12 {
    text-align: center;
    padding: 10px 0 0;
    font-size: 13px;
    color: #64748b;
}

    .login-box > .col-sm-12 a {
        color: #1F4E79;
        font-weight: 600;
        text-decoration: none;
    }

        .login-box > .col-sm-12 a:hover {
            text-decoration: underline;
        }

.login-box-body {
    padding: 20px 26px 26px;
    color: #374151;
    font-size: 14px;
}

.login-box-msg {
    margin: 0 0 10px;
    font-size: 13px;
    color: #dc2626;
    text-align: center;
    min-height: 16px;
}

/* ---------- Inputs ---------- */
.login-box-body .form-group {
    margin-bottom: 14px;
}

.login-box-body .input-group {
    display: flex;
    margin-bottom: 4px;
}

.login-box-body .form-control {
    height: 42px;
    border-radius: 6px 0 0 6px;
    border: 1px solid #cbd5e1;
    font-size: 14px;
    padding: 8px 12px;
    box-shadow: none;
}

    .login-box-body .form-control:focus {
        border-color: #1F4E79;
        box-shadow: 0 0 0 3px rgba(31,78,121,0.12);
        outline: none;
    }

.login-box-body .input-group-addon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: #1F4E79;
    color: #fff;
    border-radius: 0 6px 6px 0;
    font-size: 16px;
}

.text-danger {
    color: #dc2626;
    font-size: 12px;
    margin-top: 4px;
    min-height: 14px;
}

.text-success {
    color: #16a34a;
    font-size: 12px;
}

/* ---------- Captcha ---------- */
.LoginCaptcha {
    margin: 14px 0;
    padding: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    text-align: center;
}

    .LoginCaptcha img {
        height: 44px;
        border-radius: 4px;
        border: 1px solid #dbe3ec;
        background: #fff;
    }

    .LoginCaptcha a {
        display: inline-block;
        margin: 6px 0 8px;
        font-size: 12px;
        color: #1F4E79;
        text-decoration: none;
    }

        .LoginCaptcha a:hover {
            text-decoration: underline;
        }

    .LoginCaptcha .form-control {
        text-align: center;
        letter-spacing: 2px;
    }

/* ---------- Buttons ---------- */
.login-btn {
    height: 42px;
    min-width: 110px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(90deg, #1F4E79, #2c6ea3);
    border: none;
    border-radius: 6px;
    transition: filter .15s ease, transform .1s ease;
}

    .login-btn:hover {
        filter: brightness(1.08);
    }

    .login-btn:active {
        transform: translateY(1px);
    }

.back-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    min-width: 110px;
    padding: 0 16px;
    font-size: 15px;
    font-weight: 600;
    color: #fff !important;
    background: #e69328;
    border: 1px solid #d17b0b;
    border-radius: 6px;
    text-decoration: none;
    transition: background .15s ease;
}

    .back-btn:hover {
        background: #d17b0b;
        text-decoration: none;
    }

.login-box-body a {
    color: #1F4E79;
    font-weight: 600;
    text-decoration: none;
}

    .login-box-body a:hover {
        text-decoration: underline;
    }

/* misc row spacing used inline in the page */
.pdt10 {
    padding-top: 10px;
}

.pdt15 {
    padding-top: 15px;
}

/* ---------- Modals (Bootstrap 3 look, refreshed) ---------- */
.modal-content {
    border-radius: 10px;
    overflow: hidden;
    border: none;
    box-shadow: 0 12px 32px rgba(0,0,0,0.25);
}

.modal-header {
    height: auto;
    padding: 14px 20px;
    background: linear-gradient(90deg, #1F4E79, #2c6ea3);
    color: #fff;
    border-bottom: none;
}

    .modal-header h4 {
        color: #fff;
        margin: 0;
        font-size: 17px;
    }

    .modal-header .close {
        color: #fff;
        opacity: 0.85;
        text-shadow: none;
        font-size: 22px;
    }

        .modal-header .close:hover {
            opacity: 1;
        }

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 14px 20px;
}

.star {
    font-size: 15px;
    color: #dc2626;
    font-weight: 700;
    margin-left: 2px;
}

/* ---------- Toast / alert ---------- */
.alert {
    position: fixed;
    bottom: 16px;
    right: 16px;
    z-index: 20000;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

/* ---------- number input spinner removal (used in dept reg form) ---------- */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

/* autofill color override */
input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #fff inset !important;
}

/* ---------- Responsive ---------- */
@media (max-width: 460px) {
    .login-logo img {
        max-width: 200px;
    }

    .login-box {
        width: 100%;
    }

    .login-box-body {
        padding: 16px 18px 22px;
    }

    .login-tab {
        font-size: 18px;
        padding: 14px 16px;
    }
}
