* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #eef2f6;
    color: #1f2937;
    font-size: 15px;
    line-height: 1.5;
}

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.login-card {
    width: 100%;
    max-width: 420px;
    padding: 28px;
    background: #ffffff;
    border: 1px solid #d9e1ea;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
}

.login-header {
    margin-bottom: 20px;
    text-align: center;
}

.login-header h1 {
    margin-bottom: 6px;
    font-size: 26px;
    color: #172554;
}

.login-header p {
    color: #64748b;
    font-size: 14px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    color: #334155;
    font-size: 14px;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1dae6;
    border-radius: 8px;
    background: #ffffff;
    font: inherit;
}

.form-group input:focus {
    outline: none;
    border-color: #93a7c0;
    box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.16);
}

.password-input-wrap {
    position: relative;
    width: 100%;
}

.password-input-wrap input {
    padding-right: 44px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 14px;
    display: inline-flex;
    width: 24px;
    height: 24px;
    padding: 0;
    transform: translateY(-50%);
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: #64748b;
    cursor: pointer;
}

.eye-icon {
    display: block;
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.btn-login {
    width: 100%;
    min-height: 40px;
    border: 1px solid #1f2937;
    border-radius: 8px;
    background: #1f2937;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.btn-login:hover:not(:disabled) {
    background: #334155;
    border-color: #334155;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
}

.btn-login:disabled {
    cursor: wait;
    opacity: 0.72;
}

.error-message {
    margin-bottom: 14px;
    padding: 10px 12px;
    border: 1px solid #f1c1c1;
    border-radius: 10px;
    background: #fff1f1;
    color: #a12626;
}

@media (max-width: 480px) {
    .login-container {
        padding: 16px;
    }

    .login-card {
        padding: 22px;
    }
}
