* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: linear-gradient(135deg, #fff, #f7f7f7);
    color: #111;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow-x: hidden;
}

main.container {
    background: #fff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 0 20px rgba(17, 17, 17, 0.06);
    border: 1px solid #eee;
    width: 90%;
    max-width: 460px;
    animation: fadeIn 0.8s ease;
}

@keyframes fadeIn {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

h2#form-title {
    margin-bottom: 20px;
    font-size: 1.6em;
    color: #ff9800;
    text-align: center;
}

form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-wrapper,
.password-wrapper {
    position: relative;
    width: 100%;
}

/* Поля ввода */
.input-field {
    width: 100%;
    padding: 14px 48px 14px 16px;
    font-size: 17px;
    border-radius: 12px;
    border: 1px solid #ccc;
    outline: none;
    background: #fafafa;
    color: #111;
    transition: box-shadow 0.3s, background 0.3s, border-color 0.3s;
}

.input-field:focus {
    box-shadow: 0 0 0 2px #ff9800;
    background: #fff;
    border-color: #ff9800;
}

.toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 1.2em;
    color: #999;
    user-select: none;
}

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

/* Кнопка отправки */
button[type="submit"] {
    background: #ff9800;
    color: #fff;
    font-weight: bold;
    padding: 12px;
    border: none;
    border-radius: 10px;
    font-size: 1em;
    cursor: pointer;
    transition: background 0.3s, transform 0.1s;
}

button[type="submit"]:hover {
    background: #e68a00;
    transform: translateY(-1px);
}

.reset-password-container {
    text-align: center;
    margin-top: 25px;
}

.reset-password-btn {
    display: inline-block;
    background: linear-gradient(135deg, #ff9800, #e68a00);
    color: #fff;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 0.95em;
    box-shadow: 0 0 12px rgba(255, 152, 0, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.reset-password-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 152, 0, 0.5);
}

.form-subtitle {
    text-align: center;
    margin-top: -10px;
    margin-bottom: 25px;
    font-size: 0.95em;
    color: #555;
    /* тёмно-серый, лучше читается */
}