/* index.css - login/signup page */

.logo-header {
    text-align: center;
    margin-bottom: 2rem;
}

.logo-header h1 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.rotating-dot {
    display: inline-block;
    font-size: 2.5rem;
    color: var(--violet);
    animation: rotateDot 2s ease-in-out infinite;
}

@keyframes rotateDot {
    0% {
        transform: rotate(0deg);
        opacity: 1;
    }
    50% {
        transform: rotate(180deg);
        opacity: 0.6;
    }
    100% {
        transform: rotate(360deg);
        opacity: 1;
    }
}

.tagline {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.forgot-link {
    text-align: right;
    margin-bottom: 1.5rem;
}

.forgot-link a {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.signup-link {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
}

/* Custom Illustrations */
.illustrations {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.illustration {
    background-color: var(--bg-secondary);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--violet);
    border: 1px solid var(--border);
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.illustration i {
    transition: transform 0.3s ease;
}

.illustration:hover {
    transform: translateY(-5px);
    border-color: var(--violet);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.15);
}

.illustration:hover i {
    transform: scale(1.1);
}

/* Floating animations */
.floating-1 {
    animation: float 3s ease-in-out infinite;
}
.floating-2 {
    animation: float 3.5s ease-in-out infinite 0.5s;
}
.floating-3 {
    animation: float 4s ease-in-out infinite 1s;
}
.floating-4 {
    animation: float 2.8s ease-in-out infinite 0.3s;
}
.floating-5 {
    animation: float 3.2s ease-in-out infinite 0.8s;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* Speech bubbles */
.speech-bubble {
    position: absolute;
    background-color: var(--violet);
    color: white;
    font-size: 0.7rem;
    padding: 0.25rem 0.6rem;
    border-radius: 1rem;
    white-space: nowrap;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.illustration:hover .speech-bubble {
    opacity: 1;
}

.bubble-1 {
    animation: bounce 2s ease-in-out infinite;
}

.bubble-2 {
    animation: bounce 2.5s ease-in-out infinite 0.5s;
}

.bubble-3 {
    animation: bounce 2.2s ease-in-out infinite 1s;
}

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

/* Password toggle styles */
.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrapper input {
    flex: 1;
    padding-right: 44px;
}

.toggle-password {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px 8px;
    font-size: 16px;
    transition: color 0.2s;
    z-index: 2;
}

.toggle-password:hover {
    color: var(--text-primary);
}

.toggle-password:focus {
    outline: none;
}

/* ─── LOADING SCREEN ──────────────────────────────────────────────────────── */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.loading-screen.hide {
    opacity: 0;
    transform: scale(1.1);
    pointer-events: none;
}

.loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}

/* ─── Animated Logo with Rings ────────────────────────────────────────────── */
.loading-logo-container {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-logo {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #8B5CF6, #6D28D9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: white;
    z-index: 2;
    animation: pulse-logo 1.5s ease-in-out infinite;
    box-shadow: 0 0 40px rgba(139, 92, 246, 0.3);
}

/* Outer Ring */
.loading-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid rgba(139, 92, 246, 0.15);
    animation: ring-spin 2.5s linear infinite;
}

/* Middle Ring */
.loading-ring-2 {
    position: absolute;
    width: 85%;
    height: 85%;
    border-radius: 50%;
    border: 3px solid rgba(139, 92, 246, 0.2);
    border-top-color: #8B5CF6;
    animation: ring-spin 2s linear infinite reverse;
}

/* Inner Ring */
.loading-ring-3 {
    position: absolute;
    width: 70%;
    height: 70%;
    border-radius: 50%;
    border: 3px solid rgba(139, 92, 246, 0.25);
    border-bottom-color: #8B5CF6;
    animation: ring-spin 1.8s linear infinite;
}

@keyframes ring-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse-logo {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 0 40px rgba(139, 92, 246, 0.3);
    }
    50% { 
        transform: scale(1.05);
        box-shadow: 0 0 60px rgba(139, 92, 246, 0.5);
    }
}

/* ─── Loading Title ────────────────────────────────────────────────────────── */
.loading-title {
    font-size: 36px;
    font-weight: 800;
    margin: 0;
    letter-spacing: 4px;
    background: linear-gradient(135deg, #8B5CF6, #EC4899, #8B5CF6);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-shift 2s ease-in-out infinite;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ─── Mobile Responsive ────────────────────────────────────────────────────── */
@media (max-width: 480px) {
    .illustrations {
        gap: 0.8rem;
    }
    
    .illustration {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .speech-bubble {
        font-size: 0.6rem;
        padding: 0.2rem 0.5rem;
        white-space: nowrap;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    .logo-header h1 {
        font-size: 2rem;
    }
    
    .rotating-dot {
        font-size: 2rem;
    }

    .loading-logo-container {
        width: 110px;
        height: 110px;
    }
    
    .loading-logo {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }
    
    .loading-title {
        font-size: 28px;
        letter-spacing: 3px;
    }
}