/* =====================================================
   LOGIN PAGE — Premium Enterprise SaaS Design
   Animated gradient · Frosted-glass card · Particles
   ===================================================== */

@keyframes tc-grad-shift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes tc-card-in {
    from { opacity: 0; transform: translateY(28px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0)    scale(1); }
}

/* ── Particle canvas ── */
#tc-login-particles {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ── Full-screen animated background ── */
.tc-login-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
    background: linear-gradient(135deg, #0A1628 0%, #1E6FD9 45%, #3B9EFF 70%, #1E6FD9 100%);
    background-size: 400% 400%;
    animation: tc-grad-shift 14s ease infinite;
    position: relative;
    z-index: 1;
}

/* ── Frosted-glass card ── */
.tc-login-card {
    animation: tc-card-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 20px;
    padding: 40px 36px 36px;
    width: 100%;
    max-width: 420px;
    box-shadow:
        0 32px 64px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(255, 255, 255, 0.04) inset;
    position: relative;
    z-index: 2;
}

/* ── Logo block inside card ── */
.tc-login-logo-wrap {
    text-align: center;
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tc-login-logo {
    height: 44px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    margin-bottom: 10px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.tc-login-logo-title {
    font-size: 15px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.92);
    letter-spacing: 0.01em;
}

.tc-login-logo-sub {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.45);
    margin-top: 3px;
}

/* ── Fallback icon when no logo is set ── */
.tc-login-logo-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #1E6FD9, #3B9EFF);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    box-shadow: 0 8px 24px rgba(59, 158, 255, 0.35);
}

.tc-login-logo-icon svg { color: #fff; }

/* ── Title / subtitle ── */
.tc-login-title {
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 6px;
    text-align: center;
    letter-spacing: -0.01em;
}

.tc-login-subtitle {
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.55);
    text-align: center;
    margin-bottom: 28px;
    line-height: 1.5;
}

/* ── Alerts ── */
.tc-alert {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 18px;
    border: 1px solid transparent;
}

.tc-alert-error {
    background: rgba(239, 68, 68, 0.18);
    border-color: rgba(239, 68, 68, 0.35);
    color: #fca5a5;
}

.tc-alert-success {
    background: rgba(34, 197, 94, 0.18);
    border-color: rgba(34, 197, 94, 0.35);
    color: #86efac;
}

/* ── Form ── */
.tc-login-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.tc-form-group { display: flex; flex-direction: column; }

.tc-label {
    font-size: 12.5px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 7px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.tc-input {
    background: rgba(255, 255, 255, 0.07) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    border-radius: 10px !important;
    color: #ffffff !important;
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif !important;
    font-size: 14px !important;
    padding: 12px 14px !important;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    outline: none;
}

.tc-input:focus {
    border-color: rgba(59, 158, 255, 0.65) !important;
    background: rgba(255, 255, 255, 0.11) !important;
    box-shadow: 0 0 0 3px rgba(59, 158, 255, 0.18) !important;
}

.tc-input::placeholder { color: rgba(255, 255, 255, 0.3) !important; }

.tc-input-wrapper { position: relative; }

.tc-input-wrapper .tc-input { padding-right: 42px !important; }

.tc-input-toggle-pass {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.35);
    padding: 4px;
    display: flex;
    align-items: center;
    transition: color 0.15s;
}

.tc-input-toggle-pass:hover { color: rgba(255, 255, 255, 0.8); }

/* ── Primary button ── */
.tc-btn-primary {
    background: linear-gradient(135deg, #1E6FD9 0%, #3B9EFF 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 10px !important;
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    padding: 13px 20px !important;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 4px 20px rgba(30, 111, 217, 0.45);
    letter-spacing: 0.01em;
}

.tc-btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 8px 28px rgba(30, 111, 217, 0.55);
}

.tc-btn-primary:active { transform: translateY(0); opacity: 1; }

.tc-btn-full { width: 100%; }

/* ── Password / forgot links ── */
.tc-login-meta {
    display: flex;
    justify-content: flex-end;
    margin-top: -6px;
}

.tc-login-meta a {
    font-size: 12.5px;
    font-weight: 600;
    color: rgba(59, 158, 255, 0.85);
    text-decoration: none;
    transition: color 0.15s;
}

.tc-login-meta a:hover { color: #ffffff; text-decoration: underline; }

/* ── Card footer / back links ── */
.tc-login-footer {
    margin-top: 20px;
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45);
}

.tc-login-footer a {
    color: rgba(59, 158, 255, 0.85);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.15s;
}

.tc-login-footer a:hover { color: #ffffff; text-decoration: underline; }

/* ── Page footer (below card) ── */
.tc-login-page-footer {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.3);
    text-align: center;
    margin-top: 20px;
    position: relative;
    z-index: 2;
}

/* ── LGPD consent ── */
.tc-policy-box {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 13px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.65);
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 18px;
}

.tc-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
    cursor: pointer;
    line-height: 1.5;
}

.tc-mb-4 { margin-bottom: 16px; }

/* ── Hint text ── */
.tc-hint {
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 5px;
    display: block;
}

/* ── Responsive ── */
@media (max-width: 480px) {
    .tc-login-card {
        padding: 28px 20px 24px;
        border-radius: 16px;
    }

    .tc-login-title { font-size: 20px; }
}
