/* =========================================================
 * Termback - login.css
 * Estilos da página de login
 * ========================================================= */

/* ---------------------------------------------------------
 * Page Layout
 * --------------------------------------------------------- */
body.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* ---------------------------------------------------------
 * Background Effects
 * --------------------------------------------------------- */
.grid-pattern {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 60px,
            rgba(255,255,255,0.02) 60px,
            rgba(255,255,255,0.02) 61px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 60px,
            rgba(255,255,255,0.02) 60px,
            rgba(255,255,255,0.02) 61px
        );
    pointer-events: none;
}

/* ---------------------------------------------------------
 * Login Container
 * --------------------------------------------------------- */
.login-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    padding: 20px;
}

.login-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-2xl);
    padding: 48px 40px;
    box-shadow: 
        0 0 0 1px rgba(255,255,255,0.05),
        var(--shadow-card),
        0 0 100px rgba(var(--brand-rgb), 0.1);
    animation: cardAppear 0.6s ease forwards;
}

@keyframes cardAppear {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ---------------------------------------------------------
 * Logo Section
 * --------------------------------------------------------- */
.login-logo {
    text-align: center;
    margin-bottom: 40px;
}

.tb-logo-login {
    height: 56px;
    margin: 0 auto 16px;
}

.login-logo p {
    color: var(--text-muted);
    font-size: 15px;
}

/* ---------------------------------------------------------
 * Login Form
 * --------------------------------------------------------- */
.login-form .btn-primary {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    position: relative;
    overflow: hidden;
}


/* ---------------------------------------------------------
 * Error Message
 * --------------------------------------------------------- */
.error-message {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--accent-red);
    padding: 14px 16px;
    border-radius: var(--radius-md);
    font-size: 14px;
    margin-bottom: 24px;
    display: none;
    align-items: center;
    gap: 10px;
}

.error-message.show {
    display: flex;
    animation: shake 0.4s ease;
}

.error-message svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* ---------------------------------------------------------
 * Footer
 * --------------------------------------------------------- */
.login-footer {
    text-align: center;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.login-footer p {
    color: var(--text-muted);
    font-size: 13px;
}

.login-footer a {
    color: var(--brand);
    text-decoration: none;
}

.login-footer a:hover {
    text-decoration: underline;
}

/* ---------------------------------------------------------
 * Responsive
 * --------------------------------------------------------- */
@media (max-width: 480px) {
    .login-card {
        padding: 36px 28px;
    }

    .tb-logo-login {
        height: 46px;
    }
}
