/* auth.css - Authentication specific styles */

#auth-view {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 80px);
    /* Adjust when navbar is present */
}

.auth-box {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: var(--radius-lg);
    padding: 3rem 2.5rem;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--glass-shadow);
    text-align: center;
    transform: translateY(0);
    transition: var(--transition-bounce);
}

.auth-box:hover {
    box-shadow: 0 15px 35px 0 rgba(0, 0, 0, 0.4);
}

.auth-box h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.auth-box .subtitle {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

#login-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    margin-top: 1rem;
    display: none;
    animation: shake 0.5s cubic-bezier(.36, .07, .19, .97) both;
}

#login-error.active {
    display: block;
}

@keyframes shake {

    10%,
    90% {
        transform: translate3d(-1px, 0, 0);
    }

    20%,
    80% {
        transform: translate3d(2px, 0, 0);
    }

    30%,
    50%,
    70% {
        transform: translate3d(-4px, 0, 0);
    }

    40%,
    60% {
        transform: translate3d(4px, 0, 0);
    }
}

/* Centering the loading screen */
#loading-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
}

#loading-screen p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    letter-spacing: 1px;
    animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}