﻿/* Дополнительные стили для формы регистрации */
.registration-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.registration-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #6200ee;
}

    .registration-header h2 {
        font-size: 2.5rem;
        background: linear-gradient(45deg, #6200ee, #2196f3);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        margin-bottom: 10px;
    }

    .registration-header span {
        color: #b0b0b0;
        font-size: 1.1rem;
    }

.registration-form {
    background: #1e1e1e;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    border: 1px solid #444;
}

.form-group {
    margin-bottom: 25px;
}

    .form-group span {
        display: block;
        color: #b0b0b0;
        margin-bottom: 8px;
        font-weight: 600;
        text-transform: uppercase;
        font-size: 0.9rem;
        letter-spacing: 0.5px;
    }

.form-control {
    background: #2d2d2d;
    border: 2px solid #444;
    border-radius: 10px;
    color: #ffffff;
    padding: 12px 15px;
    width: 100%;
    transition: all 0.3s ease;
    font-size: 1rem;
}

    .form-control::placeholder{
        color: #b7b7b7ff;
    }

    .form-control:focus {
        outline: none;
        border-color: #6200ee;
        box-shadow: 0 0 0 3px rgba(98, 0, 238, 0.2);
    }

    .form-control:hover {
        border-color: #6200ee;
    }

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: rgba(98, 0, 238, 0.1);
    border-radius: 10px;
    border: 1px solid #6200ee;
}

    .checkbox-group input[type="checkbox"] {
        width: 20px;
        height: 20px;
        cursor: pointer;
        accent-color: #6200ee;
    }

    .checkbox-group span {
        margin: 0;
        color: #ffffff;
        text-transform: none;
        font-size: 1rem;
    }

.submit-button {
    background: linear-gradient(45deg, #6200ee, #3700b3);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 20px;
}

    .submit-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 20px rgba(98, 0, 238, 0.4);
        background: linear-gradient(45deg, #3700b3, #6200ee);
    }

    .submit-button:active {
        transform: translateY(0);
    }

.login-link {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #444;
}

    .login-link span {
        color: #b0b0b0;
        margin-right: 10px;
    }

    .login-link a {
        color: #2196f3;
        text-decoration: none;
        font-weight: 600;
        transition: all 0.3s ease;
    }

        .login-link a:hover {
            color: #4fc3f7;
            text-decoration: underline;
        }

/* Анимация появления формы */
@keyframes formAppear {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.registration-form {
    animation: formAppear 0.5s ease-out;
}

/* Стили для обязательных полей */
.required-field::after {
    content: " *";
    color: #f44336;
}

/* Адаптивность */
@media (max-width: 768px) {
    .registration-container {
        padding: 20px 10px;
    }

    .registration-header h2 {
        font-size: 2rem;
    }

    .registration-form {
        padding: 25px;
    }

    .form-group {
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .registration-header h2 {
        font-size: 1.8rem;
    }

    .registration-form {
        padding: 20px;
    }
}

/*===========================*/

/* Стили для модального окна ошибок */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.modal-error {
    background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    border: 1px solid #dc3545;
    box-shadow: 0 10px 30px rgba(220, 53, 69, 0.2);
    overflow: hidden;
    animation: slideIn 0.3s ease;
}

.modal-header {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

    .modal-header h3 {
        margin: 0;
        color: white;
        font-size: 1.3rem;
        display: flex;
        align-items: center;
        gap: 10px;
    }

        .modal-header h3 i {
            font-size: 1.5rem;
        }

.close-modal {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    transition: transform 0.2s;
}

    .close-modal:hover {
        transform: scale(1.1);
    }

.modal-body {
    padding: 25px;
    max-height: 60vh;
    overflow-y: auto;
}

.error-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.error-item {
    background: rgba(220, 53, 69, 0.1);
    border-left: 4px solid #dc3545;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 4px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    transition: background-color 0.2s;
}

    .error-item:hover {
        background: rgba(220, 53, 69, 0.15);
    }

    .error-item i {
        color: #dc3545;
        font-size: 1.2rem;
        margin-top: 2px;
    }

    .error-item p {
        margin: 0;
        color: #f8d7da;
        line-height: 1.5;
    }

.modal-footer {
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: right;
}

.btn-modal {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

    .btn-modal:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(220, 53, 69, 0.3);
    }

/* Анимации */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Адаптивность */
@media (max-width: 576px) {
    .modal-error {
        width: 95%;
        margin: 10px;
    }

    .modal-body {
        padding: 20px;
    }

    .error-item {
        padding: 12px;
    }
}