/* Общие стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(145deg, #fce8e6, #f5d6d0);
    background-attachment: fixed;
}

.container {
    max-width: 600px;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 40px;
    padding: 40px 30px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: 0.3s;
}

h1 {
    font-size: 2.8rem;
    font-weight: 700;
    color: #4a2c2a;
    text-align: center;
    letter-spacing: -1px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.subtitle {
    text-align: center;
    color: #a67a72;
    font-size: 1.1rem;
    margin-bottom: 32px;
    font-weight: 400;
    border-bottom: 2px dashed #e8d5d0;
    padding-bottom: 16px;
}

/* Группы полей */
.form-group {
    margin-bottom: 22px;
}

label {
    display: block;
    font-weight: 600;
    color: #4a2c2a;
    margin-bottom: 6px;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

label i {
    margin-right: 6px;
    opacity: 0.7;
}

input, select, textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #f0ded9;
    border-radius: 24px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.6);
    transition: 0.2s;
    outline: none;
    color: #2d1c1a;
}

input:focus, select:focus, textarea:focus {
    border-color: #dba89e;
    box-shadow: 0 0 0 4px rgba(219, 168, 158, 0.2);
    background: white;
}

select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2380605a' 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 16px center;
    background-size: 20px;
}

textarea {
    resize: vertical;
    min-height: 80px;
}

/* Кнопка */
button {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #dba89e, #c48b80);
    border: none;
    border-radius: 40px;
    color: white;
    font-size: 1.3rem;
    font-weight: 700;
    cursor: pointer;
    transition: 0.25s;
    letter-spacing: 0.5px;
    box-shadow: 0 6px 14px rgba(192, 132, 120, 0.3);
    margin-top: 8px;
}

button:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 12px 20px rgba(192, 132, 120, 0.35);
}

button:disabled {
    opacity: 0.6;
    transform: none;
    box-shadow: none;
    cursor: not-allowed;
}

/* Сообщения */
#message {
    margin-top: 20px;
    padding: 16px 20px;
    border-radius: 30px;
    text-align: center;
    font-weight: 500;
    display: none;
    animation: fadeSlide 0.4s ease;
}

#message.success {
    display: block;
    background: #e4f5e9;
    color: #1f6d3b;
    border: 1px solid #b8dec9;
}

#message.error {
    display: block;
    background: #fce9e7;
    color: #b13e34;
    border: 1px solid #f5cdc8;
}

@keyframes fadeSlide {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Адаптив */
@media (max-width: 480px) {
    .container {
        padding: 28px 18px;
        border-radius: 28px;
    }
    h1 {
        font-size: 2.2rem;
    }
    button {
        font-size: 1.1rem;
        padding: 16px;
    }
}

/* Стили для админки (дополнительно) */
.admin-table {
    border-radius: 24px;
    overflow: hidden;
}