/* ============================================
   БАЗОВЫЕ СТИЛИ
   ============================================ */
   * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Arial, sans-serif;
}

body {
    min-height: 100vh;
    background: linear-gradient(135deg, #fdf2f8 0%, #f5e6f0 40%, #e8e0f5 100%);
    display: flex;
    flex-direction: column;
    padding: 30px 20px;
}

/* ============================================
   ШАПКА
   ============================================ */
.header {
    text-align: center;
    margin-bottom: 30px;
}
.header h1 {
    font-size: 28px;
    color: #8b3a62;
    letter-spacing: 1.5px;
    font-weight: 600;
}
.header p {
    font-size: 14px;
    color: #a88ba0;
    font-style: italic;
    margin-top: 6px;
}

/* ============================================
   ЗАГОЛОВОК РАЗДЕЛА
   ============================================ */
h2 {
    text-align: center;
    font-size: 22px;
    color: #8b3a62;
    font-weight: 600;
    letter-spacing: 3px;
    margin-bottom: 20px;
}

/* ============================================
   БОКС ФОРМЫ / ПРОФИЛЯ
   ============================================ */
.form-box,
.profile-box {
    border: 2px solid #a86bb5;
    border-radius: 16px;
    padding: 35px 40px;
    max-width: 460px;
    width: 100%;
    margin: 0 auto 20px;
    background: #fff;
    box-shadow: 0 15px 40px rgba(168, 107, 181, 0.2);
    position: relative;
}
.profile-box {
    max-width: 620px;
}
.form-box::before,
.profile-box::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 20px;
    right: 20px;
    height: 4px;
    background: linear-gradient(90deg, #d67ba8, #a86bb5, #7b8ed6);
    border-radius: 4px;
}

/* ============================================
   ПОЛЯ ФОРМЫ
   ============================================ */
.form-row {
    display: flex;
    align-items: center;
    margin-bottom: 18px;
}
.form-row label {
    width: 90px;
    font-size: 15px;
    color: #8b3a62;
    font-weight: 600;
}
.form-row input[type="text"],
.form-row input[type="password"],
.form-row input[type="email"] {
    flex: 1;
    padding: 11px 15px;
    border: 2px solid #f0e0ea;
    border-radius: 10px;
    font-size: 15px;
    background: #fdf8fb;
    color: #4a3a45;
    transition: all 0.3s;
    font-family: inherit;
}
.form-row input:focus {
    border-color: #d67ba8;
    background: #fff;
    outline: none;
    box-shadow: 0 0 0 4px rgba(214, 123, 168, 0.15);
}
.form-row input.error {
    border-color: #e05580 !important;
    background: #fff5f8 !important;
}
.form-row input[type="file"] {
    flex: 1;
    padding: 8px 12px;
    border: 2px solid #f0e0ea;
    border-radius: 10px;
    font-size: 13px;
    background: #fdf8fb;
    color: #4a3a45;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}
.form-row input[type="file"]:hover {
    border-color: #d67ba8;
    background: #fff;
}

/* ============================================
   ПОДСКАЗКИ
   ============================================ */
.field-hint {
    display: block;
    margin-left: 90px;
    margin-top: -10px;
    margin-bottom: 15px;
    font-size: 12px;
    color: #b0a0aa;
    transition: color 0.3s;
}
.field-hint.error {
    color: #c83a6a;
    font-weight: 600;
}

/* ============================================
   СООБЩЕНИЕ ОБ ОШИБКАХ
   ============================================ */
.form-alert {
    background: #fdeef3;
    color: #b83a6a;
    border: 1px solid #f8d0e0;
    padding: 12px 18px;
    border-radius: 10px;
    max-width: 460px;
    margin: 0 auto 20px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    animation: slideDown 0.4s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================
   КНОПКИ (жёстко, чтобы перебить всё)
   ============================================ */
.form-box button.btn-primary {
    display: block !important;
    width: 100% !important;
    padding: 14px 20px !important;
    margin: 25px 0 0 0 !important;
    background: linear-gradient(135deg, #d67ba8 0%, #a86bb5 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 12px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    font-family: 'Segoe UI', Arial, sans-serif !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
    box-shadow: 0 6px 18px rgba(168, 107, 181, 0.35) !important;
    height: auto !important;
    line-height: 1.4 !important;
}

.form-box button.btn-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 25px rgba(168, 107, 181, 0.5) !important;
    background: linear-gradient(135deg, #c96a9b 0%, #9660a5 100%) !important;
}

.form-box button.btn-secondary {
    display: block !important;
    width: 100% !important;
    padding: 12px 20px !important;
    margin: 10px 0 0 0 !important;
    background: transparent !important;
    color: #a86bb5 !important;
    border: 2px solid #e8d5e8 !important;
    border-radius: 12px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    font-family: 'Segoe UI', Arial, sans-serif !important;
    letter-spacing: 0.5px !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
    height: auto !important;
    line-height: 1.4 !important;
}

.form-box button.btn-secondary:hover {
    border-color: #d67ba8 !important;
    color: #8b3a62 !important;
    background: #fdf8fb !important;
}

/* ============================================
   ССЫЛКИ
   ============================================ */
.links {
    display: flex;
    justify-content: space-between;
    max-width: 460px;
    width: 100%;
    margin: 0 auto;
    padding: 0 10px;
    font-size: 14px;
}
.links a {
    color: #a86bb5;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
    padding: 5px 0;
}
.links a:hover {
    color: #8b3a62;
    text-decoration: underline;
}

/* ============================================
   ПРОФИЛЬ
   ============================================ */
.profile-success {
    text-align: center;
    color: #8b3a62;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}
.profile-welcome {
    text-align: center;
    color: #a88ba0;
    font-size: 14px;
    margin-bottom: 25px;
}
.profile-table {
    width: 100%;
    border-collapse: collapse;
}
.profile-table tr {
    border-bottom: 1px solid #f5e6f0;
}
.profile-table tr:last-child {
    border-bottom: none;
}
.profile-table td {
    padding: 12px 5px;
    font-size: 14px;
    color: #4a3a45;
}
.profile-table td:first-child {
    color: #8b3a62;
    font-weight: 600;
    width: 40%;
}
.ip-badge {
    display: inline-block;
    background: #f5e6f0;
    color: #8b3a62;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* ============================================
   ФУТЕР
   ============================================ */
.footer {
    margin-top: auto;
    padding-top: 30px;
    text-align: center;
    font-size: 13px;
    color: #a88ba0;
    line-height: 1.9;
}
.footer a {
    color: #a86bb5;
    text-decoration: none;
}
.footer a:hover {
    text-decoration: underline;
}
.footer p {
    margin: 3px 0;
}
.footer .copyright {
    margin-top: 8px;
    font-size: 12px;
    color: #c8b0c0;
}