/* /assets/css/style-login.css — Glass card on gradient mesh (matches Marketing) */

.login-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #1e3240 0%, #2b4656 40%, #3a5d72 70%, #2b4656 100%);
    position: relative;
    overflow: hidden;
}

.login-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.login-mesh1 {
    position: absolute;
    width: 500px;
    height: 500px;
    top: -150px;
    right: -100px;
    background: radial-gradient(circle, rgba(152, 202, 67, 0.08) 0%, transparent 70%);
}

.login-mesh2 {
    position: absolute;
    width: 400px;
    height: 400px;
    bottom: -100px;
    left: -50px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
}

.login-lines {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 80px,
        rgba(255, 255, 255, 0.015) 80px,
        rgba(255, 255, 255, 0.015) 81px
    );
}

.login-card {
    width: 440px;
    max-width: 90vw;
    padding: 3rem;
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    text-align: center;
    animation: cardFadeIn 0.5s ease;
}

@keyframes cardFadeIn {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.login-card__logo {
    width: 145px;
    height: auto;
    margin: 0 auto 1.75rem;
    display: block;
}

.login-card__title {
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 0.4rem;
    letter-spacing: 0.02em;
}

.login-card__sub {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    margin: 0 0 2rem;
}

/* Logged-in variant: the sub sits right above its actions, no big gap */
.login-card__sub--tight {
    margin-bottom: 0.35rem;
}

.login-card__btn {
    display: block;
    width: 100%;
    padding: 1.1rem;
    background: #98CA43;
    color: #1a2a36;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 16px rgba(152, 202, 67, 0.35);
}

.login-card__btn:hover {
    background: #7fb235;
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(152, 202, 67, 0.4);
}

/* Action stack: one primary, then a compact row of secondary actions */
.login-card__actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.login-card__row {
    display: flex;
    gap: 0.75rem;
}

.login-card__row .login-card__btn {
    flex: 1;
}

/* Secondary "ghost" action: glass outline, brand-tinted on hover */
.login-card__btn--ghost {
    padding: 0.7rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: none;
}

.login-card__btn--ghost:hover {
    background: rgba(255, 255, 255, 0.11);
    border-color: rgba(152, 202, 67, 0.75);
    color: #fff;
    box-shadow: none;
}

.login-card__msg {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    margin: 1rem 0 0;
}

.login-card__msg--error {
    color: #ffb8b8;
}

/* Footer: hairline divider, then the sign-out control */
.login-card__foot {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.login-card__signout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.55rem 1.4rem;
    border: 1px solid rgba(255, 172, 172, 0.35);
    border-radius: 8px;
    color: #ffb8b8;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.login-card__signout:hover {
    background: rgba(255, 120, 120, 0.12);
    border-color: rgba(255, 150, 150, 0.6);
    color: #ffd4d4;
}

.login-card__signout svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.login-card__disclaimer {
    margin-top: 2rem;
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.3);
    line-height: 1.5;
}

@media (prefers-reduced-motion: reduce) {
    .login-card { animation: none; }
    .login-card__btn:hover { transform: none; }
}

@media (max-width: 480px) {
    .login-card {
        padding: 2rem 1.5rem;
        border-radius: 12px;
    }
}
