@import url('/static/css/tokens.css');
@import url('/static/css/shared/buttons.css');
@import url('/static/css/shared/cards.css');

/* ====== Layout ====== */
body.login-page-body {
    font-family: var(--font-body);
    color: var(--primary-primary);
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    height: 100%;
    background-color: var(--color-light-accent);
    padding: 2.5rem;
}

.login-content-block {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 75px;
    z-index: 1;
    height: 100%;
    width: 100%;
    position: relative;
}

.login-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: var(--font-primary);
    height: 100%;
    width: 500px
}

.login-brand-name {
    font-family: var(--font-lingo-laps, 'Atma', sans-serif);
    font-size: clamp(5.8rem, 8vw, 4.5rem);
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: 0.03em;
    line-height: 5rem;
    margin-bottom: 0.75rem;
}

.lingo-laps-animated {
    display: inline-block;
    position: relative;
    opacity: 0;
    animation: runAndStop 1.2s cubic-bezier(0.25, 0.1, 0.25, 1.5) 0.1s 1 forwards;
    white-space: nowrap;
}

.login-subtitle {
    font-family: var(--font-secondary);
    font-size: clamp(1rem, 2.5vw, 1.15rem);
    color: var(--primary-text);
    max-width: 400px;
    line-height: 1.6;
    margin: 2rem 0;
    opacity: 0;
    animation: fadeInFromBottom 0.5s 0.6s ease-out forwards;
}

/* ====== Animations ====== */
@keyframes fadeInWelcome {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

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

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

/* ====== Social Login ====== */
.social-login-options {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 500px;
    height: 100%;
    opacity: 0;
    animation: fadeInElements 0.6s 1.1s ease-out forwards;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 360px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    border: 1px solid transparent;
    font-family: var(--font-secondary);
    flex: 1;
    animation: subtle-pulse-scale 2.5s infinite ease-in-out;
    transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    gap: 0.75em;
    border-radius: 50% 20% / 10% 40%;
}

.social-btn:hover {
    box-shadow: 0 7px 15px rgba(0, 0, 0, 0.18);
}

.social-btn:active {
    transform: translateY(0px) scale(0.98);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.12);
}

.social-btn i.fab {
    font-size: 1em;
    width: 32px;
    text-align: center;
    display: flex;
    justify-content: space-evenly;
}

/* .social-btn span,
.social-btn i.fab, */
.social-btn svg.provider-icon {
    transition: transform 0.18s cubic-bezier(0.4, 0.2, 0.2, 1);
}

.social-btn:hover span,
.social-btn:hover i.fab {
    transform: scale(1.08);
}

/* ====== Provider Specifics ====== */
.google-btn {
    background-color: var(--accent-green);
    color: #3A3A3A;
    border: 1px solid #E0E0E0;
}

.google-btn:hover {
    background-color: #F7F7F7;
}

.facebook-btn {
    background-color: var(--color-secondary);
    color: #FFFFFF;
}

.facebook-btn:hover {
    background-color: var(--color-secondary);
}

.apple-btn {
    background-color: #000000;
    color: #FFFFFF;
}

.apple-btn:hover {
    background-color: var(--color-dark-accent);
}

/* ====== Terms & Footer ====== */
.login-terms-text {
    margin-top: 3rem;
    font-size: 0.85rem;
    color: var(--font-secondary);
    position: fixed;
    bottom: 0;
    margin-block: 2rem;
    text-align: center;
    width: 100%;
}

.login-terms-text a {
    color: var(--highlight);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.login-terms-text a:hover {
    color: var(--font-primary);
    opacity: 0;
    animation: fadeInElements 0.6s 1.1s ease-out forwards;
}

/* ====== Responsive ====== */
@media (min-width: 768px) {
    .login-content-block {
        padding: clamp(3rem, 6vw, 5rem);
    }
}