/* Minimal Login Page CSS - Dark Blue / White / Grey */
/* ================================================ */

/* Global */
* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #0f1a2b; /* deep navy */
    color: #1f2937;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Main Login Container */
.clsLoginLayoutUI3 {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
    padding: 32px;
    width: 400px;
    max-width: 92%;
    margin: 16px;
    position: relative;
}

.clsLoginBGUI3 {
    position: relative;
}

/* ---------- Language Selection (BOTTOM, INLINE, SLIM) ---------- */
div.clsLogin_LanguageDiv {
    position: static; /* sits at the bottom */
    margin-top: 16px;
    padding: 0;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center; /* center under everything */
    gap: 8px;
    z-index: 10;
}

.clsLogin_LanguageDiv .clsLogin_InfoLabel2 {
    margin: 0;
    font-weight: 600;
    font-size: 12px;
    color: #4b5563;
}

/* Slimmer select ONLY here */
.clsLogin_LanguageDiv select.clsLogin_TextControls {
    padding: 6px 28px 6px 10px;
    height: 34px;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 13px;
}

    .clsLogin_LanguageDiv select.clsLogin_TextControls:focus {
        outline: none;
        border-color: #0b3d91;
        box-shadow: 0 0 0 3px rgba(11, 61, 145, 0.15);
    }

/* Form wrapper */
.clsLoginActionDIV {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

div.clsDivAction {
    position: relative;
    background: transparent;
    width: 100%;
    margin: 0 auto;
    padding: 0;
}

/* Table layout kept for server controls */
table.clsTblActionDetails,
.clsLoginActionDetails {
    width: 100%;
    border: none;
    border-collapse: collapse;
    font-family: 'Segoe UI', sans-serif;
}

    /* Remove big gaps between rows */
    .clsLoginActionDetails tr {
        display: block;
        margin: 0;
    }

    .clsLoginActionDetails td {
        display: block;
        padding: 0;
    }

/* Tighten label/input spacing */
td.clsLoginLabel,
td.clsLoginLabel_1 {
    padding-bottom: 4px;
}

td.clsUserName,
td.clsPasswordTxtBox {
    padding-bottom: 16px;
}

/* Labels */
.clsLogin_InfoLabelUI3,
td.clsLoginLabel,
td.clsLoginLabel_1 {
    font-weight: 600;
    font-size: 13px;
    color: #4b5563;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

/* Inputs */
.clsLogin_TextControls,
td.clsUserName input,
td.clsPasswordTxtBox input,
.form-group input,
.form-group select {
    font-size: 14px;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #f9fafb;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    width: 100%;
}

    .clsLogin_TextControls:focus,
    td.clsUserName input:focus,
    td.clsPasswordTxtBox input:focus,
    .form-group input:focus,
    .form-group select:focus {
        outline: none;
        border-color: #0b3d91;
        background: #ffffff;
        box-shadow: 0 0 0 3px rgba(11, 61, 145, 0.15);
    }

/* Primary button */
.clsLogin_ScreenBtn,
.clsLoginBtn,
input.clsLoginBtn {
    background: #0b3d91;
    color: #ffffff;
    border: 1px solid #0a3682;
    padding: 12px 28px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    width: 100%;
    margin-top: 8px;
    transition: transform 0.1s ease, box-shadow 0.2s ease, background 0.2s ease;
}

    .clsLogin_ScreenBtn:hover,
    .clsLoginBtn:hover,
    input.clsLoginBtn:hover {
        background: #092f75;
        box-shadow: 0 8px 20px rgba(11, 61, 145, 0.25);
    }

td.clsLogin_ScreenLoginBtn {
    text-align: center;
    padding: 0;
    border-radius: 6px;
    overflow: hidden;
}

/* Forgot password centered under Login */
div.clsLoginForgotPW {
    text-align: center;
    margin-top: 12px;
}

.clsLoginForgotPW .button-group-horizontal {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
}

a.clsLogin_Link {
    font-size: 13px;
    text-decoration: none;
    color: #0b3d91;
    font-weight: 600;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

    a.clsLogin_Link:hover {
        color: #092f75;
        text-decoration: underline;
    }

/* Footer */
.login-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
    color: #6b7280;
    font-size: 12px;
}

/* Hide legacy/branding artifacts */
#apDiv1, #apDiv2, #apDiv3, #apDiv4, #apDiv5, #apDiv6, #apDiv7, #apDiv8,
#apDiv9, #apDiv10, #apDiv11, #apDiv12, #apDiv13, #apDiv14, #apDiv16,
#apDiv18, #apDiv19, #apDiv21, #apDiv23, #apDiv25, #apDiv26, #apDiv27,
#apDiv28, #apDiv29, #apDiv30, #apDiv31, #apDiv32, #apDiv34, #apDiv36,
#apDiv38, div.topFlashIntro, div.cslDivActionLine,
div.clsDivAction div.loginPhoto {
    display: none !important;
}

/* Responsive */
@media (max-width: 768px) {
    .clsLoginLayoutUI3 {
        padding: 24px 18px;
        margin: 10px;
        width: calc(100% - 20px);
    }

    body {
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .clsLoginLayoutUI3 {
        padding: 18px 14px;
    }

    .clsLoginActionDetails::before {
        font-size: 20px;
        margin-bottom: 16px;
    }
}