/* ============================================
   EMSIS - Login Page CSS
   Font: Chulabhorn Likit (via _LayoutTest)
   ============================================ */

.login-container {
    font-family: 'chulabhorn likit text regular', sans-serif;
    position: relative;
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #eef2f8;
    background-image: url('/images/newimg/bg_login.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 40px 20px;
}

.login-overlay {
    display: none;
}

.login-content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.login-card {
    width: 100%;
    background: #ffffff;
    border: 1px solid #d6dbe4;
    border-radius: 22px;
    padding: 34px 36px 18px;
    box-shadow: 0 8px 24px rgba(17, 41, 86, 0.16);
    text-align: left;
}

.login-logo {
    margin-bottom: 20px;
    text-align: center;
}

.login-logo img {
    display: block;
    max-width: 440px;
    width: 100%;
    height: auto;
    margin: 0 auto;
}

.login-form {
    margin-top: 0;
}

.login-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
    width: 100%;
}

.login-label {
    color: #2c3a57;
    font-size: 1.1rem;
    line-height: 1.45;
    margin: 0;
    margin-bottom: 8px;
    font-weight: 500;
    text-align: center;
    width: 100%;
}

.login-input-wrap {
    width: 100%;
}

.login-input-line {
    width: 100%;
    border: 1px solid #ced4da;
    border-radius: 8px;
    background: #ffffff;
    padding: 10px 14px;
    font-size: 1rem;
    font-weight: 400;
    color: #253246;
    box-shadow: none;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.login-input-line:focus {
    border-color: #1f4aa5;
    box-shadow: 0 0 0 3px rgba(31, 74, 165, 0.1);
}

.login-error {
    display: block;
    margin-top: 6px;
    font-size: 0.86rem;
    text-align: center;
}

.captcha-wrap {
    display: flex;
    justify-content: center;
    margin: 14px 0 12px;
}

.login-btn {
    width: 110px;
    background: #002575;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 4px 14px;
    font-size: 1.22rem;
    font-weight: 400;
    font-family: 'chulabhorn likit text regular', sans-serif;
    cursor: pointer;
    transition: background 0.2s;
    margin: 0 auto;
    display: block;
    line-height: 1.1;
}

.login-btn:hover {
    background: #001f63;
}

.login-register-link {
    text-align: center;
    margin-top: 18px;
    font-size: 0.98rem;
    color: #4b5563;
}

.login-register-link a {
    color: #002575;
    font-weight: 500;
    text-decoration: none;
}

.login-register-link a:hover {
    text-decoration: underline;
}

/* reCAPTCHA center alignment */
.g-recaptcha {
    display: inline-block;
}

/* Alert styling */
.alert {
    border-radius: 8px;
    padding: 12px 18px;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 576px) {
    .login-card {
        padding: 26px 18px 16px;
        border-radius: 16px;
    }
    
    .login-logo img {
        max-width: 360px;
    }

    .login-row {
        margin-bottom: 14px;
    }

    .login-label {
        font-size: 0.98rem;
        line-height: 1.2;
    }

    .login-input-line {
        font-size: 0.95rem;
        padding: 8px 12px;
    }

    .captcha-wrap {
        overflow: auto;
    }

    .g-recaptcha {
        transform: scale(0.92);
        transform-origin: center;
    }
}

/* Password Toggle styles */
.position-relative {
    position: relative;
}

.password-toggle-btn {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0;
    color: #6b7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    outline: none;
}

.password-toggle-btn:hover {
    color: #1f4aa5;
}

.pe-5 {
    padding-right: 42px !important;
}
