/* === Базовые настройки === */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Nunito', 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #fff5f7 0%, #ffeef2 100%);
    color: #4a2c2a;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
/* === Алерты === */
.alert {
    padding: 14px 20px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 16px;
    text-align: center;
    animation: fadeIn 0.25s ease-out;
}
.alert-error   { background: #fdecef; color: #a61e5c; border: 1px solid #ffb3c6; }
.alert-success { background: #e8f8ee; color: #1d6b3a; border: 1px solid #b6e6c8; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* === 🍰 ДЕКОРАТИВНЫЕ КАРТИНКИ ПО УГЛАМ === */
.deco-image {
    position: fixed;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
    filter: blur(0.5px);
}

.deco-image:hover {
    opacity: 0.3;
    transform: scale(1.05);
    filter: blur(0px);
}

.deco-tl {
    top: -80px;
    left: -80px;
    background-image: url('11262604e6097b5024e2.jpg');
}

.deco-tr {
    top: -80px;
    right: -80px;
    background-image: url('30_27tort_2025-10-12_21-18-49.jfif');
}

.deco-bl {
    bottom: -80px;
    left: -80px;
    background-image: url('img_3466-1-1024x734-1-optimized.webp');
}

.deco-br {
    bottom: -80px;
    right: -80px;
    background-image: url('WhatsApp_Image_2022-.jpeg.webp');
}

/* === Общий контейнер === */
.auth-wrapper {
    position: relative;
    z-index: 10;
    background: #ffffff;
    width: 100%;
    max-width: 440px;
    border-radius: 24px;
    box-shadow: 0 15px 40px rgba(214, 51, 132, 0.1);
    padding: 40px 32px;
    text-align: center;
}

/* === Шапка === */
.auth-header {
    margin-bottom: 24px;
}

.company-name {
    font-size: 32px;
    font-weight: 700;
    color: #d63384;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
}

.company-mission {
    font-size: 14px;
    color: #8a6a68;
    font-weight: 600;
}

/* === Интерактивный блок преимуществ === */
.info-block {
    background: #fff9fb;
    border: 1px dashed #ffb3c6;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 28px;
}

.info-title {
    font-size: 15px;
    color: #d63384;
    margin-bottom: 16px;
    font-weight: 700;
}

.benefits {
    list-style: none;
    text-align: left;
}

.benefit-item {
    display: flex;
    align-items: center;
    padding: 12px 14px;
    margin-bottom: 8px;
    background: #ffffff;
    border: 2px solid #f0e6ea;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
    font-size: 14px;
    color: #5a4a49;
}

.benefit-item:hover {
    border-color: #ff8fab;
    background: #fff0f5;
    transform: translateX(4px);
}

.benefit-item.selected {
    border-color: #d63384;
    background: #ffe0ec;
    color: #a61e5c;
    font-weight: 600;
}

.benefit-item .icon {
    font-size: 18px;
    margin-right: 12px;
}

.benefit-item .text {
    flex-grow: 1;
}

.benefit-item .check {
    width: 22px;
    height: 22px;
    border: 2px solid #e0cfd3;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: transparent;
    transition: all 0.25s ease;
}

.benefit-item.selected .check {
    background: #d63384;
    border-color: #d63384;
    color: #ffffff;
}

/* Сообщение под списком */
.personal-message {
    margin-top: 16px;
    padding: 14px;
    background: #fff8e1;
    border-left: 4px solid #ffb347;
    border-radius: 8px;
    font-size: 13px;
    color: #7a5a2b;
    line-height: 1.4;
    display: none;
    animation: fadeIn 0.3s ease-out;
}

.personal-message.show {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* === Форма авторизации === */
.form-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #4a2c2a;
}

.form-border-box {
    background: #fdfdfd;
    border: 1px solid #f0e6ea;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
}

.input-group {
    margin-bottom: 16px;
    text-align: left;
}

.input-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #8a6a68;
    margin-bottom: 6px;
}

.input-group input {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #f0e6ea;
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    color: #4a2c2a;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.input-group input:focus {
    border-color: #ff8fab;
    box-shadow: 0 0 0 3px rgba(255, 143, 171, 0.15);
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #d63384;
    cursor: pointer;
}

.checkbox-group label {
    font-size: 14px;
    color: #5a4a49;
    cursor: pointer;
}

/* Кнопки и ссылки */
.form-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.btn-submit {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #ff8fab 0%, #d63384 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    font-family: inherit;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(214, 51, 132, 0.3);
}

.btn-submit:active {
    transform: translateY(0);
}

.form-links {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}

.auth-link {
    color: #8a6a68;
    text-decoration: none;
    transition: color 0.2s;
}

.auth-link:hover {
    color: #d63384;
    text-decoration: underline;
}

/* === Подвал === */
.auth-footer {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid #f0e6ea;
    font-size: 12px;
    color: #a89493;
    line-height: 1.6;
}

/* === Адаптивность для мобильных === */
@media (max-width: 768px) {
    .deco-image {
        display: none;
    }
    
    .auth-wrapper {
        padding: 24px 20px;
        border-radius: 20px;
    }
    
    .company-name {
        font-size: 28px;
    }
    
    .form-links {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}
