/**
 * Auth & Profile Styles for Soulpage
 * Focus: Cute, Glassmorphism, Purple Gradients
 */

:root {
    --cute-purple: #a855f7;
    --cute-pink: #ec4899;
    --glass-bg: rgba(20, 20, 28, 0.62);
    --glass-border: rgba(255, 255, 255, 0.14);
}

.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 10;
    position: relative;
}

.auth-card {
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    padding: 40px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 24px 0;
}

.service-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 12px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.service-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
    border-color: var(--cute-purple);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.3);
}

.service-btn svg {
    width: 24px;
    height: 24px;
    color: white;
}

.cute-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 16px;
    color: white;
    outline: none;
    transition: all 0.3s;
}

.cute-input:focus {
    border-color: var(--cute-purple);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.15);
}

.btn-auth {
    width: 100%;
    background: linear-gradient(135deg, var(--cute-purple), var(--cute-pink));
    color: white;
    font-weight: 700;
    padding: 16px;
    border-radius: 16px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(236, 72, 153, 0.3);
    filter: brightness(1.1);
}

.btn-auth:disabled {
    cursor: not-allowed;
    opacity: 0.65;
    transform: none;
    filter: none;
}

.auth-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 6px;
    margin-bottom: 24px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
}

.auth-toggle button {
    border: 0;
    border-radius: 12px;
    padding: 10px;
    color: rgb(156, 163, 175);
    font-weight: 700;
    background: transparent;
    cursor: pointer;
}

.auth-toggle button.active {
    color: white;
    background: rgba(168, 85, 247, 0.35);
}

.auth-message {
    display: none;
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 14px;
    font-size: 0.875rem;
    line-height: 1.4;
}

.auth-message.active {
    display: block;
}

.auth-message.error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: rgb(252, 165, 165);
}

.auth-message.info {
    background: rgba(168, 85, 247, 0.12);
    border: 1px solid rgba(168, 85, 247, 0.3);
    color: rgb(216, 180, 254);
}

/* Success Overlay */
.success-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 12, 0.9);
    backdrop-filter: blur(20px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
    flex-direction: column;
}

.success-overlay.active {
    display: flex;
    animation: fadeIn 0.5s forwards;
}

.success-img {
    width: 300px;
    animation: bounce 2s infinite;
}

.profile-icon-container {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid var(--cute-purple);
    overflow: hidden;
    margin: 0 auto 20px;
    background: var(--glass-bg);
}

.profile-icon-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-hero {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.24), rgba(20, 20, 28, 0.72) 48%, rgba(236, 72, 153, 0.18));
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border-radius: 28px;
    padding: 40px;
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.stats-card {
    background: rgba(20, 20, 28, 0.62);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-radius: 18px;
    padding: 24px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

.soulpage-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    place-items: center;
    background: rgba(10, 10, 12, 0.72);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.soulpage-loader.active {
    display: grid;
}

.soulpage-loader-panel {
    min-width: 220px;
    padding: 28px;
    border-radius: 24px;
    text-align: center;
    background: rgba(20, 20, 28, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.55);
}

.soulpage-loader-mark {
    width: 56px;
    height: 56px;
    margin: 0 auto 14px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--cute-purple), var(--cute-pink));
    color: white;
    font-family: 'Outfit', sans-serif;
    font-size: 30px;
    font-weight: 700;
    animation: pulseGlow 1.2s ease-in-out infinite;
}

.soulpage-loader-text {
    color: white;
    font-family: 'Outfit', sans-serif;
    font-size: 26px;
    font-weight: 700;
}

.soulpage-loader-subtext {
    margin-top: 6px;
    color: rgb(156, 163, 175);
    font-size: 13px;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(40px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.cute-floating {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0%, 100% { transform: translateY(0) rotate(0); }
    50% { transform: translateY(-10px) rotate(2deg); }
}

@keyframes pulseGlow {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 rgba(168, 85, 247, 0); }
    50% { transform: scale(1.06); box-shadow: 0 0 34px rgba(236, 72, 153, 0.38); }
}
