/
RoditelevVV
/
web-static-labs
Обзор
Документация
Войти
/
RoditelevVV
/
web-static-labs
Код
Запросы
0
Задачи
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
html/lab5/task9/styles.css
352 строки
6 KB
karpov
finish lab3, lab4
12 мар 2026, 08:19
12 мар 2026, 08:19
74cd197
Код
Авторство
О чём код?
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; } body { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: #333; min-height: 100vh; padding: 20px; } .container { max-width: 500px; margin: 0 auto; background: rgba(255, 255, 255, 0.95); border-radius: 20px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); overflow: hidden; } .header { background: linear-gradient(135deg, #2c3e50, #34495e); color: white; padding: 30px; text-align: center; } .header h1 { font-size: 2.2rem; margin-bottom: 8px; } .subtitle { font-size: 1rem; opacity: 0.9; } .main-content { padding: 30px; } .registration-form { background: white; padding: 25px; border-radius: 15px; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); margin-bottom: 25px; } .form-group { margin-bottom: 25px; } .form-label { display: block; font-weight: 600; color: #2c3e50; margin-bottom: 8px; font-size: 1rem; } .form-input, .form-select { width: 100%; padding: 12px 15px; border: 2px solid #e9ecef; border-radius: 8px; font-size: 1rem; transition: all 0.3s ease; background: white; } .form-input:focus, .form-select:focus { outline: none; border-color: #667eea; box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1); } .form-input.valid { border-color: #00b09b; background: #f8fff9; } .form-input.invalid { border-color: #e74c3c; background: #fff5f5; } .error-message { color: #e74c3c; font-size: 0.85rem; margin-top: 5px; min-height: 20px; opacity: 0; transition: opacity 0.3s ease; } .error-message.show { opacity: 1; } .hint-message { color: #f39c12; font-size: 0.85rem; margin-top: 5px; min-height: 20px; opacity: 0; transition: opacity 0.3s ease; font-style: italic; } .hint-message.show { opacity: 1; } .checkbox-group { margin-bottom: 15px; } .checkbox-label { display: flex; align-items: center; gap: 12px; cursor: pointer; padding: 10px 0; transition: all 0.3s ease; } .checkbox-label:hover { background: #f8f9fa; border-radius: 8px; padding: 10px 12px; } .checkbox-label input { display: none; } .checkmark { width: 20px; height: 20px; border: 2px solid #667eea; border-radius: 4px; position: relative; transition: all 0.3s ease; flex-shrink: 0; } .checkbox-label input:checked + .checkmark { background: #667eea; } .checkbox-label input:checked + .checkmark::after { content: '✓'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); color: white; font-weight: bold; font-size: 12px; } .checkbox-text { font-weight: 500; color: #2c3e50; } .address-group { transition: all 0.3s ease; } .address-group.hidden { display: none; } .address-group.visible { display: block; animation: slideDown 0.3s ease; } @keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } } .form-buttons { display: flex; gap: 15px; margin-top: 30px; } .submit-btn, .reset-btn { flex: 1; padding: 15px 20px; border: none; border-radius: 10px; font-size: 1rem; font-weight: 600; cursor: pointer; transition: all 0.3s ease; } .submit-btn { background: linear-gradient(135deg, #00b09b, #96c93d); color: white; } .submit-btn:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0, 176, 155, 0.3); } .submit-btn:active { transform: translateY(0); } .reset-btn { background: linear-gradient(135deg, #95a5a6, #7f8c8d); color: white; } .reset-btn:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(149, 165, 166, 0.3); } .reset-btn:active { transform: translateY(0); } .validation-result { background: white; padding: 25px; border-radius: 15px; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); min-height: 80px; display: flex; align-items: center; justify-content: center; text-align: center; color: #7f8c8d; font-style: italic; } .validation-result.success { background: linear-gradient(135deg, #00b09b, #96c93d); color: white; font-style: normal; font-weight: 600; } .validation-result.error { background: linear-gradient(135deg, #ff416c, #ff4b2b); color: white; font-style: normal; font-weight: 600; } .footer { background: #f8f9fa; padding: 20px 30px; text-align: center; border-top: 1px solid #e9ecef; color: #6c757d; } .footer small { font-size: 0.9rem; } .form-select { appearance: none; background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23667eea' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e"); background-repeat: no-repeat; background-position: right 15px center; background-size: 16px; padding-right: 45px; } @keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } } .form-input.invalid { animation: shake 0.3s ease; } @media (max-width: 768px) { .container { margin: 10px; border-radius: 15px; } .header { padding: 20px; } .header h1 { font-size: 1.8rem; } .main-content { padding: 20px; } .registration-form { padding: 20px; } .form-buttons { flex-direction: column; } .submit-btn, .reset-btn { width: 100%; } } @media (max-width: 480px) { .registration-form { padding: 15px; } .form-group { margin-bottom: 20px; } .form-input, .form-select { padding: 10px 12px; font-size: 16px; } .validation-result { padding: 20px 15px; font-size: 0.9rem; } } .hidden { display: none !important; }