/* Стили модального окна */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(3px);
}

.modal-content {
    background: #0f0f13;
    margin: 5% auto;
    padding: 0;
    border-radius: 16px;
    width: 90%;
    max-width: 480px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    border: 1px solid #2d2d3a;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    background: #1a1a23;
    padding: 24px;
    border-bottom: 1px solid #2d2d3a;
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
}

.modal-logo {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    font-size: 1.3em;
    box-shadow: 0 4px 12px rgba(108, 92, 231, 0.3);
}

.modal-header h2 {
    color: #ffffff;
    margin: 0;
    font-size: 1.6em;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.close {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    color: #8c8c9e;
    font-size: 26px;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

.close:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.modal-body {
    padding: 32px;
}

.auth-info {
    text-align: center;
    margin-bottom: 32px;
}

.auth-info h3 {
    color: #ffffff;
    margin-bottom: 12px;
    font-size: 1.4em;
    font-weight: 600;
    line-height: 1.3;
}

.auth-info p {
    color: #a0a0b0;
    line-height: 1.5;
    font-size: 1em;
    font-weight: 400;
}

.auth-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 28px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: #1a1a23;
    border-radius: 12px;
    border: 1px solid #2d2d3a;
    transition: all 0.2s ease;
}

.feature:hover {
    border-color: #3d3d4a;
    transform: translateY(-1px);
}

.feature-icon {
    font-size: 1.4em;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(108, 92, 231, 0.1);
    border-radius: 8px;
}

.feature-text {
    color: #e0e0e8;
    font-size: 0.95em;
    font-weight: 500;
}

.auth-description {
    text-align: center;
    margin-bottom: 28px;
    padding: 20px;
    background: #1a1a23;
    border-radius: 12px;
    border: 1px solid #2d2d3a;
}

.auth-description p {
    color: #a0a0b0;
    margin: 0;
    line-height: 1.5;
    font-size: 0.95em;
}

.auth-btn {
    background: var(--primary);
    color: #000;
    border: none;
    padding: 18px 28px;
    border-radius: 12px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 16px rgba(108, 92, 231, 0.3);
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 92, 231, 0.4);
}

.auth-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(108, 92, 231, 0.3);
}

.btn-icon {
    font-size: 1.3em;
}

.auth-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #2d2d3a;
}

.auth-footer p {
    color: #8c8c9e;
    font-size: 0.85em;
    line-height: 1.4;
    margin: 0;
    font-weight: 400;
}

/* Адаптивность */
@media screen and (max-width: 600px) {
    .modal-content {
        margin: 10% auto;
        width: 95%;
        border-radius: 12px;
    }

    .modal-header {
        padding: 20px;
    }

    .modal-body {
        padding: 24px 20px;
    }

    .feature {
        padding: 14px 16px;
    }

    .auth-info h3 {
        font-size: 1.3em;
    }

    .auth-btn {
        padding: 16px 24px;
    }
}

@media screen and (max-width: 400px) {
    .modal-header {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .modal-header h2 {
        font-size: 1.4em;
    }

    .close {
        position: absolute;
        right: 16px;
        top: 16px;
        transform: none;
    }
}