@import url("https://use.fontawesome.com/releases/v5.0.10/css/all.css");

:root {
    --login-primary: var(--primary, #1d84c3);
    --login-secondary: var(--secondary, #0b4c74);
    --login-grad-1: #1c95cc;
    --login-grad-2: #0e6e9c;
    --login-footer: #0c6390;
    --login-footer-strip: #0a4068;
    --login-input-bg: #f0f0f0;
    --login-input-addon: #d6d6d6;
    --login-input-icon: #2a2a2a;
    --login-text: #1f2937;
    --login-muted: #4b5563;
    --login-shadow: 0 14px 32px rgba(0, 0, 0, 0.18);
}

* { box-sizing: border-box; }

html, body {
    height: 100%;
    margin: 0;
}

body {
    font-family: 'Roboto Condensed', system-ui, -apple-system, Segoe UI, sans-serif !important;
    color: var(--login-text);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto Condensed', sans-serif !important;
}

.invalid-feedback { display: block; }

.login-wrapper {
    min-height: 100vh;
    display: block;
}

.login {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, var(--login-grad-1) 0%, var(--login-grad-2) 100%);
}

.login-shell {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 28px 16px 32px;
}

.log-logo {
    margin: 8px 0 22px;
    text-align: center;
}

.logo-login,
.logo-login-1 {
    max-width: 90%;
    height: auto;
    max-height: 130px;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.25));
}

.loginInner1 {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
}

.featured-box-login {
    background: #ffffff;
    padding: 22px 22px 24px;
    border-radius: 6px;
    box-shadow: var(--login-shadow);
}

.featured-box-login h4 {
    color: var(--login-primary);
    font-size: 22px;
    font-weight: 500;
    text-align: center;
    margin-bottom: 14px;
}

.featured-box-login h4 i {
    color: var(--login-primary);
    margin-left: 4px;
    font-size: 16px;
}

.login .form-group {
    position: relative;
    margin-bottom: 12px;
}

/* Input with right-side dark icon addon (matches reference) */
.login .form-group.input-icon-group {
    display: flex;
    align-items: stretch;
    width: 100%;
}

.login .form-group.input-icon-group .form-control {
    flex: 1 1 auto;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    border-right: none !important;
}

.login .form-group.input-icon-group .input-icon-addon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: var(--login-input-addon);
    border: 1px solid #c4c8cc;
    border-left: none;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
    color: var(--login-input-icon);
    font-size: 14px;
}

.login .form-control {
    width: 100%;
    height: 42px;
    padding: 8px 14px;
    background: var(--login-input-bg);
    border: 1px solid #c4c8cc !important;
    border-radius: 4px !important;
    font-size: 15px;
    color: var(--login-text);
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.login .form-control::placeholder { color: #6b7280; }

.login .form-control:focus {
    background: #ffffff;
    border-color: var(--login-primary) !important;
    box-shadow: 0 0 0 3px rgba(0, 136, 204, 0.18);
    outline: none;
}

.btn-submit {
    width: 100%;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--login-primary) !important;
    border: none !important;
    color: #fff !important;
    font-weight: 500;
    font-size: 15px;
    letter-spacing: 0.3px;
    border-radius: 4px;
    cursor: pointer;
    transition: filter 0.15s ease, transform 0.08s ease;
}

.btn-submit:hover { filter: brightness(1.06); color: #fff !important; }
.btn-submit:active { transform: translateY(1px); }

.btn-login { width: 100%; }

.btn-submit .fa-sign-in-alt {
    font-size: 14px;
}

.recaptchaTerms {
    font-size: 11px;
    color: var(--login-muted);
    line-height: 1.35;
    display: block;
    margin-top: 8px;
}

.recaptchaTerms a { color: var(--login-primary); text-decoration: none; }
.recaptchaTerms a:hover { text-decoration: underline; }

.download-apk a {
    color: var(--login-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.download-apk a:hover { text-decoration: underline; }
.download-apk i { margin-right: 4px; }

.flash__wrapper,
#usernameError {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fca5a5;
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 13px;
    margin-bottom: 8px;
}

/* Footer — same blue strip as the page background, slightly darker */
.login-footer {
    flex-shrink: 0;
    background: var(--login-footer);
    color: #fff;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.login-footer-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.login-footer-nav a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.login-footer-nav a:hover { text-decoration: underline; }

.login-footer-support {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    text-align: center;
    flex: 1;
}

/* Modal */
.modal-content.login_wid {
    border: none;
    border-radius: 8px;
    box-shadow: var(--login-shadow);
}
.modal-content.login_wid .modal-title { color: var(--login-primary); font-weight: 600; }
.modal-content.login_wid .modal-body { line-height: 1.5; padding: 18px 20px; color: var(--login-text); }
.modal-content.login_wid .modal-footer { gap: 8px; padding: 12px 18px; }

.btn.Exit_red {
    background: #dc3545;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 8px 18px;
    font-weight: 500;
}
.btn.Exit_red:hover { background: #c82333; color: #fff; }

.btn.Confirm_other {
    background: var(--login-primary);
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 8px 18px;
    font-weight: 500;
}
.btn.Confirm_other:hover { color: #fff; filter: brightness(1.06); }

.m-b-20 { margin-bottom: 20px !important; }

#load {
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    position: fixed;
    inset: 0;
    background-image: linear-gradient(var(--login-grad-1), var(--login-grad-2));
}
#load-inner { position: relative; text-align: center; }
#load-inner img { display: block; height: 65px; }
#load-inner i { font-size: 24px; color: #fff; margin-top: 40px; }

/* Tablets and small desktops */
@media (max-width: 991.98px) {
    .logo-login-1 { max-height: 110px; }
}

/* Mobile */
@media (max-width: 575.98px) {
    .login-shell { padding: 22px 14px 26px; }
    .log-logo { margin: 4px 0 18px; }
    .logo-login-1 { max-height: 84px; max-width: 70%; }
    .loginInner1 { max-width: 100%; }
    .featured-box-login { padding: 20px 18px 22px; }
    .featured-box-login h4 { font-size: 20px; }
    .login .form-control,
    .btn-submit { height: 44px; font-size: 15px; }
    .login-footer {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        gap: 8px;
        padding: 12px 14px;
    }
    .login-footer-nav ul { justify-content: center; gap: 14px; }
    .login-footer-support { font-size: 16px; }
}

@media (min-height: 900px) and (min-width: 768px) {
    .login-shell { padding-top: 64px; }
}
