* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    background:
        linear-gradient(180deg, #fff 0%, #f7f7f8 42%, #f1f2f4 100%);
    color: #222;
}

.header {
    background: #c52c6f;
    color: white;
    text-align: center;
    padding: 28px 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}

.header h1 {
    margin: 0;
    font-size: 32px;
    letter-spacing: .3px;
}

.login-box {
    width: min(92%, 440px);
    margin: 56px auto 40px;
    padding: 32px;
    background: white;
    border: 1px solid #e4e4e7;
    border-radius: 16px;
    box-shadow:
        0 10px 30px rgba(0, 0, 0, .08),
        0 2px 8px rgba(0, 0, 0, .05);
}

.login-box h2 {
    margin: 0 0 18px;
    font-size: 28px;
}

label {
    display: block;
    margin-top: 18px;
    margin-bottom: 7px;
    font-weight: 700;
    font-size: 15px;
}

input {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #cfcfd4;
    border-radius: 9px;
    font-size: 16px;
    background: #fff;
    transition:
        border-color .15s ease,
        box-shadow .15s ease;
}

input:focus {
    outline: none;
    border-color: #c52c6f;
    box-shadow: 0 0 0 3px rgba(197, 44, 111, .12);
}

.button {
    width: 100%;
    margin-top: 24px;
    padding: 13px 16px;
    color: white;
    background: #c52c6f;
    border: 0;
    border-radius: 9px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition:
        transform .12s ease,
        background .12s ease;
}

.button:hover {
    background: #ae245f;
}

.button:active {
    transform: translateY(1px);
}

.message {
    margin-bottom: 14px;
    padding: 12px 14px;
    color: #8a003f;
    background: #fff0f6;
    border: 1px solid #f5c7dc;
    border-radius: 8px;
}

.password-field {
    position: relative;
}

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

.password-field input::-ms-reveal,
.password-field input::-ms-clear {
    display: none;
}

.password-toggle {
    position: absolute;
    top: 0;
    right: 4px;
    bottom: 0;
    width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: #666;
    cursor: pointer;
}

.password-toggle:hover {
    color: #c52c6f;
}

.password-toggle:focus-visible {
    outline: 2px solid #c52c6f;
    outline-offset: -4px;
    border-radius: 6px;
}

.password-toggle svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.password-toggle .eye-slash {
    display: none;
}

.password-toggle.is-visible .eye-slash {
    display: block;
}

.show-password {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    font-size: 14px;
    font-weight: normal;
    cursor: pointer;
}

.show-password input {
    width: 18px;
    height: 18px;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
    accent-color: #c52c6f;
}

@media (max-width: 600px) {
    .header {
        padding: 22px 16px;
    }

    .header h1 {
        font-size: 27px;
    }

    .login-box {
        margin-top: 32px;
        padding: 24px;
        border-radius: 12px;
    }

    .login-box h2 {
        font-size: 24px;
    }
}
