/* ================================
   Login Prompt Component Styles
   Elegant centered design with geometric sphere
   ================================ */

.login-prompt {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
    z-index: var(--z-overlay);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.6s ease;
}

/* Geometric Sphere Animation */
.login-sphere {
    margin-bottom: var(--space-3xl);
    animation: floatIn 1s ease-out, slowRotate 20s linear infinite;
    cursor: pointer;
}

.login-sphere:hover {
    animation-play-state: paused;
}

.login-sphere svg {
    overflow: visible;
    filter: drop-shadow(0 8px 24px rgba(96, 213, 242, 0.15));
    transition: filter 0.5s ease;
}

/* Enhance glow on hover */
.login-sphere:hover svg {
    filter: drop-shadow(0 0 40px rgba(96, 213, 242, 0.8));
}

/* Base Ring Styling - use translate for scatter (doesn't override SVG transform) */
.ring {
    transition: translate 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
        opacity 0.4s ease,
        stroke-width 0.4s ease;
    translate: 0 0;
}

/* Interactive State - Scatter Effect using translate */
/* Each ring moves outward and spins independently */
.login-sphere:hover .ring-1 {
    translate: -30px -20px;
    stroke-width: 3;
    animation: ringSpinCW 3s linear infinite;
}

.login-sphere:hover .ring-2 {
    translate: 25px -25px;
    opacity: 0.9;
    animation: ringSpinCCW 4s linear infinite;
}

.login-sphere:hover .ring-3 {
    translate: 35px 10px;
    stroke-width: 2.5;
    animation: ringSpinCW 5s linear infinite;
}

.login-sphere:hover .ring-4 {
    translate: -25px 30px;
    opacity: 0.85;
    animation: ringSpinCCW 3.5s linear infinite;
}

.login-sphere:hover .ring-5 {
    translate: 20px 25px;
    stroke-width: 2.5;
    animation: ringSpinCW 4.5s linear infinite;
}

.login-sphere:hover .ring-6 {
    translate: -35px -5px;
    opacity: 0.9;
    animation: ringSpinCCW 2.5s linear infinite;
}

.login-sphere:hover .ring-7 {
    translate: 15px -15px;
    stroke-width: 2;
    animation: ringSpinCW 2s linear infinite;
}

.login-sphere:hover .ring-8 {
    translate: -10px 20px;
    opacity: 0.7;
    animation: ringSpinCCW 1.5s linear infinite;
}

/* Ring spin keyframes using CSS rotate property (composes with SVG transform) */
@keyframes ringSpinCW {
    from {
        rotate: 0deg;
    }

    to {
        rotate: 360deg;
    }
}

@keyframes ringSpinCCW {
    from {
        rotate: 0deg;
    }

    to {
        rotate: -360deg;
    }
}

/* Title */
.login-title {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-normal);
    color: var(--muted-foreground);
    margin-bottom: var(--space-3xl);
    letter-spacing: 0.5px;
    cursor: pointer;
    position: relative;
    display: inline-block;
}

/* Text Scramble Effect */
.login-title .scramble-char {
    display: inline-block;
    transition: all 0.15s ease;
}

.login-title .scramble-char.active {
    color: var(--primary);
    transform: scale(1.1);
}

/* Animated underline */
.login-title::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--muted-foreground);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease-out;
}

.login-title:hover::after {
    transform: scaleX(1);
}

/* Subtle glow on hover */
.login-title::before {
    content: "";
    position: absolute;
    inset: -16px;
    border-radius: 8px;
    background: rgba(96, 213, 242, 0.05);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.login-title:hover::before {
    opacity: 1;
}

/* Google Sign-in Link */
.google-signin-link {
    display: inline-block;
    font-size: 0.95rem;
    font-weight: 300;
    color: #888;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: slideUp 0.8s ease-out 0.3s both;
    margin-bottom: 80px;
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
}

.google-signin-link:hover {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.google-signin-link:active {
    opacity: 0.7;
}

/* Feature Icons */
.login-features {
    display: flex;
    gap: var(--space-3xl);
    animation: slideUp 0.8s ease-out 0.4s both;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: #999;
    transition: all var(--transition-smooth);
}

.feature-item svg {
    width: 28px;
    height: 28px;
    stroke-width: 1.5;
    opacity: 0.6;
    transition: all var(--transition-smooth);
}

.feature-item span {
    font-size: 0.85rem;
    font-weight: var(--font-weight-normal);
    letter-spacing: 0.3px;
}

.feature-item:hover {
    color: var(--primary);
}

.feature-item:hover svg {
    opacity: 1;
    transform: translateY(-2px);
}

/* Animations */
@keyframes slowRotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes floatIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}