/* Общие стили страницы */ body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background: #f5f7fa; color: #333; margin: 0; padding: 40px 20px; display: flex; justify-content: center; align-items: flex-start; min-height: 100vh; } /* Контейнер формы */ form { background: #fff; padding: 30px 25px; border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); width: 100%; max-width: 400px; box-sizing: border-box; } /* Заголовок */ h1 { text-align: center; margin-bottom: 25px; font-weight: 600; color: #222; } /* Метки полей */ label { display: block; font-weight: 600; margin-bottom: 6px; color: #555; } /* Поля ввода */ input[type="email"], input[type="password"], input[type="text"] { width: 100%; padding: 12px 14px; margin-bottom: 20px; border: 1.8px solid #ccc; border-radius: 6px; font-size: 15px; transition: border-color 0.3s ease; box-sizing: border-box; } input[type="email"]:focus, input[type="password"]:focus, input[type="text"]:focus { border-color: #4a90e2; outline: none; box-shadow: 0 0 6px rgba(74, 144, 226, 0.4); } /* Кнопка отправки */ input[type="submit"] { background-color: #4a90e2; border: none; color: white; font-weight: 600; padding: 14px 0; width: 100%; border-radius: 6px; font-size: 16px; cursor: pointer; transition: background-color 0.3s ease; user-select: none; } input[type="submit"]:hover, input[type="submit"]:focus { background-color: #357abd; outline: none; } /* Сообщения об ошибках и успехах */ .message { background-color: #ffe0e0; border: 1px solid #ff8a8a; color: #b00000; padding: 12px 15px; margin-bottom: 20px; border-radius: 6px; font-size: 14px; } .success { background-color: #e0ffe7; border: 1px solid #4caf50; color: #2e7d32; padding: 12px 15px; margin-bottom: 20px; border-radius: 6px; font-size: 14px; } /* Ссылка после успешного сброса */ p a { color: #4a90e2; text-decoration: none; font-weight: 600; } p a:hover, p a:focus { text-decoration: underline; } /* Адаптивность для мобильных */ @media (max-width: 480px) { body { padding: 20px 10px; } form { padding: 20px 15px; width: 100%; max-width: 100%; } }