@import url('head.css');
@import url('style.css');

body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px 16px;
}

.container {
    width: min(440px, calc(100% - 16px));
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 18px;
    padding: 28px 26px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

h2 {
    text-align: center;
    margin-bottom: 18px;
    font-size: 28px;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: #2f2e2a;
}

form {
    display: grid;
    gap: 12px;
}

input {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid rgba(195, 197, 148, 0.65);
    border-radius: 10px;
    background: var(--white);
    color: var(--text-color);
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(208, 108, 49, 0.15);
}

button {
    width: 100%;
    padding: 12px 16px;
    background-color: var(--primary-color);
    color: var(--white);
    border: 0;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(208, 108, 49, 0.2);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

button:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
}

button:active {
    transform: translateY(0);
}

p {
    margin-top: 14px;
    text-align: center;
    color: rgba(74, 70, 62, 0.85);
}

a {
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.error,
.success {
    border-radius: 12px;
    padding: 10px 12px;
    margin: 0 0 12px;
    font-weight: 600;
    text-align: center;
}

.error {
    background: rgba(208, 108, 49, 0.12);
    color: #8a3c19;
    border: 1px solid rgba(208, 108, 49, 0.25);
}

.success {
    background: rgba(195, 197, 148, 0.35);
    color: #2f2e2a;
    border: 1px solid rgba(195, 197, 148, 0.65);
}