* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    font-family: Arial, Helvetica, sans-serif;
    background: #f3f6f9;
    color: #1f2937;
}

body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.login-wrap {
    width: 100%;
    max-width: 420px;
}

.login-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.10);
    padding: 32px;
}

.brand {
    text-align: center;
    margin-bottom: 26px;
}

.brand h1 {
    margin: 0;
    font-size: 24px;
    line-height: 1.2;
    color: #111827;
}

.brand p {
    margin: 8px 0 0;
    color: #6b7280;
    font-size: 14px;
}

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

label {
    display: block;
    margin-bottom: 7px;
    font-size: 14px;
    font-weight: 600;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    height: 46px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 0 13px;
    font-size: 15px;
    outline: none;
    background: #ffffff;
    color: #111827;
}

input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

/* Ô mật khẩu + nút con mắt */
.password-wrap {
    position: relative;
    width: 100%;
}

.password-wrap input {
    padding-right: 50px;
}

.toggle-password {
    position: absolute;
    top: 50%;
    right: 9px;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #667085;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.toggle-password:hover {
    background: #f3f4f6;
    color: #2563eb;
}

.toggle-password:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 1px;
}

.eye-icon {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}

.btn {
    width: 100%;
    height: 46px;
    border: 0;
    border-radius: 8px;
    background: #2563eb;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.btn:hover {
    background: #1d4ed8;
}

.alert {
    padding: 11px 13px;
    margin-bottom: 17px;
    border-radius: 8px;
    font-size: 14px;
}

.alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

.success-card {
    text-align: center;
}

.success-card h1 {
    font-size: 23px;
    margin: 0 0 10px;
}

.success-card p {
    color: #6b7280;
    margin: 0 0 24px;
    line-height: 1.5;
}

.link-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 8px;
    background: #111827;
    color: #ffffff;
    font-weight: 700;
    font-size: 14px;
}

.small {
    font-size: 12px;
    color: #9ca3af;
    text-align: center;
    margin-top: 18px;
}

@media (max-width: 480px) {
    body {
        padding: 16px;
    }

    .login-card {
        padding: 26px 22px;
    }
}
