/* ═══════════════════════════════════════════════════════════════════════════
   AUTH MODAL (Ported from Generator)
   ═══════════════════════════════════════════════════════════════════════════ */

.auth-modal-card {
    background: #18181b;
    width: 95%;
    max-width: 900px;
    min-height: 500px;
    border-radius: 24px;
    display: flex;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    position: relative;
}

.modal-backdrop.active .auth-modal-card {
    transform: scale(1);
}

.auth-col-left {
    flex: 1.1;
    background-image: url('/media/modal-login.png');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 30px;
}

.auth-col-left::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), transparent 60%, rgba(0, 0, 0, 0.8));
}

.auth-brand {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 18px;
    color: white;
}

.auth-logo {
    width: 32px;
    height: 32px;
}

.auth-caption {
    position: relative;
    z-index: 2;
}

.auth-caption p {
    color: white;
    font-weight: 600;
    margin: 0 0 6px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.auth-tag {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    color: white;
    text-transform: uppercase;
    font-weight: 700;
}

.auth-col-right {
    flex: 1;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #18181b, #0f0f12);
}

.auth-content {
    width: 100%;
    max-width: 340px;
}

.auth-content h2 {
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 12px 0;
    background: linear-gradient(to right, #fff, #a1a1aa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-desc {
    color: #a1a1aa;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.auth-features {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #e4e4e7;
    font-size: 14px;
    font-weight: 500;
}

.auth-features li svg {
    width: 18px;
    height: 18px;
    color: #8b5cf6;
}

.auth-btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #8b5cf6;
    color: white;
    text-decoration: none;
    padding: 14px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.25);
    cursor: pointer;
    border: none;
}

.auth-btn-primary:hover {
    background: #7c3aed;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.4);
}

.auth-footer {
    margin-top: 20px;
    text-align: center;
    font-size: 13px;
    color: #71717a;
}

.auth-footer a {
    color: #8b5cf6;
    font-weight: 600;
}

.auth-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    color: #71717a;
    cursor: pointer;
    z-index: 10;
    padding: 8px;
    border-radius: 50%;
}

.auth-close-btn:hover {
    color: white;
}

/* Modal Backdrop (Generic if not exists) */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

@media (max-width: 768px) {
    .auth-modal-card {
        flex-direction: column;
        min-height: auto;
        height: auto;
        max-height: 90vh;
        overflow-y: auto;
    }

    .auth-col-left {
        min-height: 200px;
        flex: 0 0 200px;
        padding: 20px;
    }

    .auth-col-right {
        padding: 24px;
    }
}