/* Authentication Screen Styles - Matching Website Theme */

/* Base auth screen */
.auth-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0a0a0a;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: #ffffff;
    font-size: 14px; /* Base font size for scaling */
}

/* Animated background */
.auth-background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 20% 80%, #2a2a2a 0%, #0a0a0a 50%);
}

.auth-floating-particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.auth-particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(80, 250, 123, 0.6);
    border-radius: 50%;
    animation: auth-float 20s infinite ease-in-out;
    filter: blur(0.5px);
    box-shadow: 0 0 4px rgba(80, 250, 123, 0.3);
}

@keyframes auth-float {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-40px) translateX(40px);
        opacity: 0;
    }
}

/* Main content container */
.auth-content {
    text-align: center;
    z-index: 1;
}

/* Logo styling */
.auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 40px;
}

.auth-logo img {
    height: 46px;
    filter: brightness(0) invert(1);
}

.auth-logo span {
    background: linear-gradient(135deg, #50fa7b 0%, #3dd688 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Auth card */
.auth-card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 48px 36px;
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 420px;
    width: 90%;
    margin: 0 auto;
}

/* Titles and text */
.auth-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #50fa7b 0%, #3dd688 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    margin-bottom: 24px;
}

/* Waitlist notice */
.auth-waitlist-notice {
    background: rgba(80, 250, 123, 0.05);
    border: 1px solid rgba(80, 250, 123, 0.2);
    border-radius: 16px;
    padding: 16px 20px;
    margin-bottom: 32px;
}

.auth-waitlist-notice p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    line-height: 1.4;
}

.auth-waitlist-link {
    color: #50fa7b;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.auth-waitlist-link:hover {
    color: #3dd688;
    text-decoration: underline;
}

/* Sign in button */
.auth-signin-button {
    padding: 16px 32px;
    background: transparent;
    border: 2px solid #50fa7b;
    border-radius: 24px;
    color: #50fa7b;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgba(80, 250, 123, 0.05);
    min-height: 44px;
}

.auth-signin-button:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(80, 250, 123, 0.15);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1), height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-signin-button:hover:before {
    width: 300px;
    height: 300px;
}

.auth-signin-button:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 24px rgba(80, 250, 123, 0.25);
    border-color: #3dd688;
    background: rgba(80, 250, 123, 0.08);
}

/* Loading spinner */
.auth-spinner-container {
    margin: 24px 0;
    display: flex;
    justify-content: center;
}

.auth-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(80, 250, 123, 0.2);
    border-top: 3px solid #50fa7b;
    border-radius: 50%;
    animation: auth-spin 1s linear infinite;
}

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

/* Error states */
.auth-error {
    border-color: rgba(255, 107, 107, 0.3);
}

.auth-error-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    background: rgba(255, 107, 107, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-error-icon svg {
    width: 24px;
    height: 24px;
    stroke: #ff6b6b;
}

.auth-error-message {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 24px;
    padding: 12px 16px;
    background: rgba(255, 107, 107, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 107, 107, 0.2);
}

.auth-retry-button {
    padding: 14px 28px;
    background: transparent;
    border: 2px solid #ff6b6b;
    border-radius: 24px;
    color: #ff6b6b;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgba(255, 107, 107, 0.05);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
}

.auth-retry-button svg {
    width: 16px;
    height: 16px;
}

.auth-retry-button:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 24px rgba(255, 107, 107, 0.25);
    background: rgba(255, 107, 107, 0.08);
}

/* Existing auth container styles for main app */
#authContainer {
    display: flex;
    align-items: center;
    margin-left: auto;
    padding: 0 1rem;
}

.auth-button {
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    min-width: 70px;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    min-height: 36px;
}

.auth-button:hover {
    background: rgba(80, 250, 123, 0.1);
    border-color: rgba(80, 250, 123, 0.3);
    color: #50fa7b;
    transform: translateY(-1px);
}

.auth-login {
    background: rgba(80, 250, 123, 0.05);
    border-color: rgba(80, 250, 123, 0.2);
    color: #50fa7b;
}

.auth-login:hover {
    background: rgba(80, 250, 123, 0.1);
    border-color: #50fa7b;
}

/* Responsive design */
@media (max-width: 768px) {
    .auth-logo {
        font-size: 20px;
        gap: 8px;
        margin-bottom: 32px;
    }

    .auth-logo img {
        height: 36px;
    }

    .auth-card {
        padding: 32px 24px;
        border-radius: 24px;
        width: 95%;
    }

    .auth-title {
        font-size: 24px;
        margin-bottom: 12px;
    }

    .auth-subtitle {
        font-size: 15px;
        margin-bottom: 24px;
    }

    .auth-signin-button {
        padding: 14px 24px;
        font-size: 14px;
    }

    .auth-retry-button {
        padding: 12px 20px;
        font-size: 13px;
    }

    .auth-spinner {
        width: 28px;
        height: 28px;
    }

    .auth-error-icon {
        width: 40px;
        height: 40px;
    }

    .auth-error-icon svg {
        width: 20px;
        height: 20px;
    }

    .auth-error-message {
        font-size: 13px;
    }

    #authContainer {
        padding: 0 8px;
    }
    
    .auth-button {
        padding: 6px 12px;
        font-size: 12px;
        min-width: 60px;
        min-height: 32px;
    }
}

/* Make the button the positioning context */
.settings-option[data-tooltip] {
    position: relative;
}

/* Tooltip positioned to the right of the specific button */
.settings-option[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    top: 0;
    left: 100%;
    background: #333;
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    margin-left: 10px;
    pointer-events: none;
}