/* ==================================================================
   REGISTER.CSS — СТРАНИЦА РЕГИСТРАЦИИ АВТОСАЛОНА
   КРАСНО-БЕЛАЯ ТЕМА | ТОЛЬКО ФИЗИЧЕСКИЕ ЛИЦА
   ================================================================== */

/* -------------------- RESET & БАЗА -------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(135deg, #ffffff 0%, #fef2f2 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: #1a1a1a;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 30px;
}

/* -------------------- ЦВЕТОВАЯ СХЕМА -------------------- */
:root {
    --red: #dc2626;
    --red-dark: #b91c1c;
    --red-light: #fef2f2;
    --dark: #111111;
    --gray: #666666;
    --border: #e5e5e5;
    --shadow: 0 20px 35px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 10px 25px rgba(220, 38, 38, 0.2);
}

/* -------------------- ШАПКА -------------------- */
.register-header {
    background: white;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}

.register-header .logo img {
    height: 70px;
    width: auto;
}

/* -------------------- ОСНОВНОЙ КОНТЕЙНЕР -------------------- */
.register-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

/* -------------------- КАРТОЧКА РЕГИСТРАЦИИ -------------------- */
.register-card {
    max-width: 650px;
    width: 100%;
    background: white;
    border-radius: 32px;
    box-shadow: var(--shadow);
    padding: 40px 35px 45px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--border);
}

.register-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 45px rgba(0, 0, 0, 0.15);
}

/* Декоративные уголки */
.card-corner {
    position: absolute;
    width: 60px;
    height: 60px;
    border-color: var(--red);
    border-style: solid;
    opacity: 0.3;
}

.card-corner-tl {
    top: 15px;
    left: 15px;
    border-top: 2px solid;
    border-left: 2px solid;
}

.card-corner-tr {
    top: 15px;
    right: 15px;
    border-top: 2px solid;
    border-right: 2px solid;
}

.card-corner-bl {
    bottom: 15px;
    left: 15px;
    border-bottom: 2px solid;
    border-left: 2px solid;
}

.card-corner-br {
    bottom: 15px;
    right: 15px;
    border-bottom: 2px solid;
    border-right: 2px solid;
}

/* -------------------- ЗАГОЛОВОК -------------------- */
.register-header-content {
    text-align: center;
    margin-bottom: 35px;
}

.register-icon {
    width: 70px;
    height: 70px;
    background: var(--red-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.register-icon i {
    font-size: 2rem;
    color: var(--red);
}

.register-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 10px;
}

.register-title .accent-text {
    color: var(--red);
}

.register-subtitle {
    font-size: 0.85rem;
    color: var(--gray);
}

/* -------------------- ФОРМА -------------------- */
.register-form {
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark);
    letter-spacing: 0.5px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i:first-child {
    position: absolute;
    left: 16px;
    color: var(--gray);
    font-size: 1rem;
    transition: color 0.2s;
}

.register-input {
    width: 100%;
    padding: 14px 16px 14px 45px;
    border: 2px solid var(--border);
    border-radius: 16px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    transition: all 0.2s;
    background: white;
}

.register-input:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.password-toggle {
    position: absolute;
    right: 16px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gray);
    font-size: 1rem;
    transition: color 0.2s;
}

.password-toggle:hover {
    color: var(--red);
}

/* -------------------- ЧЕКБОКСЫ -------------------- */
.agreement-group {
    margin: 25px 0 20px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.8rem;
    color: var(--gray);
    margin-bottom: 12px;
}

.checkbox-label input {
    width: 18px;
    height: 18px;
    accent-color: var(--red);
    cursor: pointer;
}

.checkbox-label span {
    cursor: pointer;
}

.agreement-link {
    color: var(--red);
    text-decoration: none;
    transition: color 0.2s;
}

.agreement-link:hover {
    color: var(--red-dark);
    text-decoration: underline;
}

/* -------------------- КНОПКА РЕГИСТРАЦИИ -------------------- */
.register-btn {
    width: 100%;
    background: var(--red);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
    font-family: 'Montserrat', sans-serif;
}

.register-btn:hover {
    background: var(--red-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.register-btn i {
    font-size: 1rem;
}

/* -------------------- ALERT -------------------- */
.register-alert {
    background: #fee2e2;
    color: var(--red);
    padding: 12px 16px;
    border-radius: 12px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    border-left: 3px solid var(--red);
}

.register-alert i {
    font-size: 1rem;
}

/* -------------------- ФУТЕР ФОРМЫ -------------------- */
.register-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.register-footer p {
    font-size: 0.85rem;
    color: var(--gray);
}

.login-link {
    color: var(--red);
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s;
}

.login-link:hover {
    color: var(--red-dark);
    text-decoration: underline;
}

/* -------------------- ПРЕИМУЩЕСТВА -------------------- */
.register-benefits {
    margin-top: 25px;
    padding: 20px;
    background: var(--red-light);
    border-radius: 20px;
}

.register-benefits h4 {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 15px;
    text-align: center;
}

.register-benefits ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    list-style: none;
}

.register-benefits li {
    font-size: 0.8rem;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.register-benefits li i {
    color: var(--red);
    font-size: 0.85rem;
}

/* -------------------- ПОДВАЛ -------------------- */
.register-footer-simple {
    background: white;
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid var(--border);
    margin-top: auto;
}

.register-footer-simple p {
    font-size: 0.75rem;
    color: var(--gray);
}

/* -------------------- МОДАЛЬНОЕ ОКНО -------------------- */
.verification-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.verification-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.verification-modal__content {
    position: relative;
    max-width: 450px;
    width: 90%;
    background: white;
    border-radius: 28px;
    padding: 35px 30px;
    text-align: center;
    z-index: 1001;
    animation: fadeInUp 0.3s ease;
    border: 1px solid var(--border);
}

.verification-modal__close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    color: var(--gray);
    transition: color 0.2s;
}

.verification-modal__close:hover {
    color: var(--red);
}

.verification-modal__icon {
    width: 70px;
    height: 70px;
    background: var(--red-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.verification-modal__icon i {
    font-size: 2rem;
    color: var(--red);
}

.verification-modal__title {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--dark);
}

.verification-modal__text {
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 20px;
}

.verification-modal__dev-code {
    background: var(--red-light);
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 15px;
}

.verification-modal__dev-code span {
    font-size: 0.8rem;
    color: var(--gray);
}

.verification-modal__dev-code strong {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--red);
    letter-spacing: 4px;
    margin-left: 10px;
}

.verification-modal__actions {
    margin-top: 20px;
}

/* -------------------- АНИМАЦИИ -------------------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.register-card {
    animation: fadeInUp 0.5s ease-out forwards;
}

/* -------------------- АДАПТИВНОСТЬ -------------------- */
@media (max-width: 700px) {
    .register-card {
        padding: 30px 25px 35px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .register-title {
        font-size: 1.3rem;
    }
    
    .register-icon {
        width: 55px;
        height: 55px;
    }
    
    .register-icon i {
        font-size: 1.5rem;
    }
    
    .card-corner {
        width: 40px;
        height: 40px;
    }
    
    .register-benefits ul {
        grid-template-columns: 1fr;
    }
    
    .register-header .logo img {
        height: 55px;
    }
}

@media (max-width: 480px) {
    .register-container {
        padding: 20px 15px;
    }
    
    .register-card {
        padding: 25px 20px 30px;
    }
    
    .register-title {
        font-size: 1.1rem;
    }
    
    .register-input {
        padding: 12px 16px 12px 40px;
        font-size: 0.85rem;
    }
    
    .verification-modal__content {
        padding: 25px 20px;
    }
    
    .verification-modal__dev-code strong {
        font-size: 1rem;
        letter-spacing: 2px;
    }
}