* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: Arial, Helvetica, sans-serif;
    background: linear-gradient(135deg, #f4f9ff 0%, #dfeefb 40%, #c9dfe8 100%);
    color: #16324f;
    padding: 30px 20px;
}

.container {
    width: 100%;
    max-width: 460px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid #d9e7f1;
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(20, 56, 83, 0.12);
    padding: 35px 28px;
}

h1 {
    text-align: center;
    font-size: clamp(2rem, 3vw, 2.4rem);
    margin-bottom: 25px;
    color: #123a5a;
}

.error-message {
    background: #fff1f1;
    color: #a62b2b;
    border: 1px solid #f0b4b4;
    padding: 10px 12px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
}

.form-intro {
    margin: -8px 0 20px;
    color: #365a75;
    line-height: 1.5;
    text-align: center;
}

.form-message {
    margin-bottom: 20px;
    padding: 10px 12px;
    border: 1px solid #a9d8bd;
    border-radius: 10px;
    background: #eef9f2;
    color: #21633a;
    text-align: center;
    font-weight: 600;
}

.form-message.error-message {
    border-color: #f0b4b4;
    background: #fff1f1;
    color: #a62b2b;
}

form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-weight: 600;
    color: #234d6e;
}

.password-hint {
    color: #a62b2b;
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.4;
}

input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #c9dfe8;
    border-radius: 10px;
    font-size: 1rem;
    background: #f9fcff;
    color: #16324f;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus {
    outline: none;
    border-color: #2a6ea7;
    box-shadow: 0 0 0 3px rgba(42, 110, 167, 0.15);
}

.button-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}

button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 52px;
    background: linear-gradient(135deg, #1d5f8f, #0f3d63);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 14px 18px;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(15, 61, 99, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

button:hover,
.button-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(15, 61, 99, 0.28);
}

button:active,
.button-link:active {
    transform: translateY(0);
}

.button-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 52px;
    padding: 14px 18px;
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(15, 61, 99, 0.14);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.secondary-button {
    background: linear-gradient(135deg, #729fc0, #4b7ca3);
}

.back-button {
    background: linear-gradient(135deg, #e7eef3, #d5e1e9);
    color: #234d6e;
}

button:focus-visible,
.button-link:focus-visible {
    outline: 3px solid #75b6ff;
    outline-offset: 3px;
}

@media (max-width: 480px) {
    .container {
        padding: 25px 18px;
    }

}
