* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: linear-gradient(135deg, #1a3a5c 0%, #2c7be5 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: -apple-system, "PingFang SC", sans-serif;
}

.login-card {
    background: #fff;
    border-radius: 12px;
    padding: 32px 28px;
    width: 340px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, .2);
    position: relative;
}

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

.login-title {
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
    color: #1a3a5c;
    letter-spacing: 1px;
}

.login-sub {
    text-align: center;
    color: #888;
    font-size: 14px;
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 16px;
}

label {
    display: block;
    font-size: 13px;
    color: #555;
    margin-bottom: 5px;
    font-weight: 500;
}

input {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #ddd;
    border-radius: 7px;
    font-size: 16px;
}

input:focus {
    outline: none;
    border-color: #2c7be5;
    box-shadow: 0 0 0 2px rgba(44, 123, 229, .15);
}

.btn-login {
    width: 100%;
    padding: 12px;
    background: #2c7be5;
    color: #fff;
    border: none;
    border-radius: 7px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 4px;
}

.btn-login:active {
    background: #1a5bb5;
}

.btn-login[disabled],
.btn-lang-toggle[disabled] {
    opacity: .65;
    cursor: wait;
}

.error-msg {
    background: #f8d7da;
    color: #721c24;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 14px;
    margin-bottom: 16px;
}

.login-footer {
    text-align: center;
    margin-top: 18px;
    font-size: 11px;
    color: #bbb;
}

.btn-lang-toggle {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: 1px solid #ccc;
    color: #666;
    cursor: pointer;
    font-size: 12px;
    padding: 3px 9px;
    border-radius: 4px;
    line-height: 1.5;
}

.btn-lang-toggle:hover {
    border-color: #2c7be5;
    color: #2c7be5;
}

.language-form {
    display: contents;
}

.remember-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 8px 0 4px;
}

.remember-checkbox {
    width: auto;
}

.remember-label {
    font-size: 13px;
    color: #666;
    margin: 0;
}

.password-input-wrapper {
    position: relative;
    width: 100%;
}

.password-input-wrapper input {
    padding-right: 44px;
}

.btn-toggle-password {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 42px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    padding: 0;
    border-radius: 0 7px 7px 0;
    transition: color .15s ease;
}

.btn-toggle-password:hover {
    color: #2c7be5;
}

.btn-toggle-password:focus-visible {
    outline: 2px solid #2c7be5;
    outline-offset: -2px;
}

.btn-toggle-password svg {
    display: block;
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.btn-toggle-password .eye-on {
    display: none;
}

/* Hide native browser password reveal eye (Edge / IE) to prevent duplicate buttons */
input::-ms-reveal,
input::-ms-clear {
    display: none;
}
