/* Magic Signup Button in Social Login */

/* Magic Login Row */
.magic-login-row {
    margin-top: 15px;
    margin-bottom: 25px;
}

.btn-magic {
    display: flex;
    align-items: center;
    justify-content: center;
    /*padding: 12px 20px;*/
    padding: 16px 24px;

    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-top: 8px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
    border: none;
    /*border: 1px solid rgba(255, 255, 255, 0.1);*/
    width: 100%;
    border-radius: 12px;
    font-size: 15px;
}


.btn-magic:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
    color: white;
}

.btn-magic:active {
    transform: translateY(0);
}

.btn-magic::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
            90deg,
            transparent,
            rgba(255, 255, 255, 0.2),
            transparent
    );
    transition: left 0.5s;
}

.btn-magic:hover::before {
    left: 100%;
}

.btn-magic i {
    font-size: 16px;
    margin-right: 10px;
    animation: sparkle 2s infinite;
}

@keyframes sparkle {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Magic Signup Info Card */
.magic-signup-info-card {
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f2ff 100%);
    border: 2px solid #e0e7ff;
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
    position: relative;
    overflow: hidden;
    display: none; /* Initially hidden */
    animation: slideIn 0.3s ease-out;
}

.magic-signup-info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2, #667eea);
    background-size: 200% 100%;
    animation: shimmer 2s infinite linear;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.magic-info-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    gap: 10px;
}

.magic-info-header i {
    color: #667eea;
    font-size: 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.magic-info-header h5 {
    margin: 0;
    flex: 1;
    color: #2d3748;
    font-weight: 600;
    font-size: 16px;
}

.magic-info-close {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-size: 14px;
}

.magic-info-close:hover {
    color: #64748b;
    background: rgba(0, 0, 0, 0.05);
}

.magic-info-text {
    color: #4a5568;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 16px;
}

.magic-info-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.feature-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 12px;
    color: #4a5568;
    font-weight: 500;
}

.feature-badge i {
    color: #667eea;
    font-size: 12px;
}

.magic-info-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    width: 100%;
    text-align: center;
}

.magic-info-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    color: white;
}

/* Animation for card */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Highlight pulse for first-time users */
.btn-magic.new-feature {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(102, 126, 234, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .magic-info-features {
        justify-content: center;
    }

    .magic-signup-info-card {
        margin: 20px -15px 0 -15px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
}

@media (max-width: 480px) {
    .magic-info-header {
        flex-wrap: wrap;
    }

    .magic-info-header h5 {
        width: 100%;
        margin-bottom: 8px;
    }
}