﻿/* ======================================
   DESIGN SYSTEM – HELP DESK PLATFORM
====================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    /* 🎨 Cores base */
    --bg-main: #f4f6fb;
    --bg-soft: #eef2f7;
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.45);
    --text-main: #0f172a;
    --text-muted: #64748b;
    --primary: #2563eb;
    --primary-soft: rgba(37, 99, 235, 0.15);
    --radius-xl: 20px;
    --radius-lg: 14px;
    --shadow-soft: 0 12px 30px rgba(15, 23, 42, 0.08);
    --shadow-hover: 0 20px 45px rgba(15, 23, 42, 0.12);
}

/* RESET BASE */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    
}

html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    cursor: default;
}
    body::before {
        content: '';
        position: fixed;
        inset: 0;
        background: radial-gradient(circle at 20% 20%, rgba(37,99,235,0.15), transparent 40%), radial-gradient(circle at 80% 80%, rgba(99,102,241,0.15), transparent 40%);
        z-index: -1;
    }

main {
    flex: 1;
}


/* BODY GLOBAL */
body {
    min-height: 100vh;
    font-family: 'Inter', sans-serif;
    background: radial-gradient(circle at top left, #ffffff, transparent 60%), radial-gradient(circle at bottom right, #e9edf5, transparent 60%), linear-gradient(180deg, var(--bg-main), var(--bg-soft));
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
}

/* ================================
   GLASS UNIVERSAL
================================ */

.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-radius: var(--radius-xl);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-soft);
}

/* ================================
   TIPOGRAFIA
================================ */

.h-title {
    font-size: 1.7rem;
    font-weight: 600;
    padding-bottom: 10px;
}

.h-subtitle {
    padding:10px 0 10px 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ================================
   INPUTS
================================ */

.input {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    background: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    color: var(--text-main);
    transition: border-color .2s, box-shadow .2s;
}
    .input:hover {
        border-color: #94a3b8;
    }

    .input:focus {
        outline: none;
        border-color: var(--primary);
        box-shadow: 0 0 0 3px var(--primary-soft);
    }
/* ================================
   LOGIN PAGE
================================ */

.login-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
}

.login-card {
    width: 100%;
    max-width: 380px;
    padding: 32px;
    animation: fadeInUp .4s ease;
}

/* HEADER */
.login-header {
    text-align: center;
    margin-bottom: 24px;
}

.login-logo {
    width: 52px;
    height: 52px;
    margin: 0 auto 12px;
    border-radius: 14px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: white;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}

/* FORM */
.form-group {
    margin-bottom: 14px;
}

/* ROW */
.login-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    margin-bottom: 18px;
}

.remember {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
}

.forgot {
    text-decoration: none;
    color: var(--text-muted);
    transition: color .2s;
}

    .forgot:hover {
        color: var(--primary);
    }

/* BUTTON FULL WIDTH */
.login-btn {
    width: 100%;
    margin-top: 6px;
}

/* ================================
   BOTÕES
================================ */

.btn-primary {
    background: linear-gradient(180deg, #3b82f6, var(--primary));
    color: white;
    border: none;
    border-radius: 12px;
    padding: 0.65rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(37, 99, 235, 0.28);
    transition: transform .15s ease, box-shadow .15s ease;
}

    .btn-primary:hover {
        transform: translateY(-1px);
        box-shadow: 0 12px 30px rgba(37, 99, 235, 0.38);
    }

.login-separator {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 16px 0 10px;
    color: var(--text-muted);
    font-size: .75rem;
}

    .login-separator::before,
    .login-separator::after {
        content: '';
        flex: 1;
        height: 1px;
        background: rgba(0,0,0,.1);
    }

.login-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: none;
    cursor: pointer;
    transition: color .2s ease, transform .2s ease;
}

    .login-back:hover {
        color: var(--primary);
        transform: translateX(-2px);
    }

/* ================================
        CONSULTA TICKETS
================================ */

.tickets-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 10px;
}

.ticket-card-consulta {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(14px);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    animation: fadeInUp .25s ease;
}

.ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .ticket-header h4 {
        margin: 0;
        font-size: 1.05rem;
        color: #0f172a;
    }

.ticket-status {
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 999px;
    font-weight: 600;
    text-transform: uppercase;
}

/* Status colors */
.status-aberto {
    background: #2563eb;
    color: white;
}

.status-emprogresso {
    background: #f59e0b;
    color: white;
}

.status-resolvido {
    background: #22c55e;
    color: white;
}

.ticket-meta {
    display: flex;
    gap: 16px;
    font-size: 0.75rem;
    color: #64748b;
    margin: 8px 0 12px;
}

.ticket-descricao {
    font-size: 0.85rem;
    color: #334155;
    line-height: 1.5;
    white-space: pre-line;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === FORM CONSULTA TICKET === */

.ticket-consulta-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 10px;
}

/* Inputs alinhados */
.ticket-input-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* Texto "ou" */
.ticket-or {
    font-size: 13px;
    color: #64748b;
    padding: 0 6px;
}

/* Inputs */
.ticket-consulta-form input {
    flex: 1;
    min-width: 220px;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 14px;
    color: #0f172a;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

    .ticket-consulta-form input::placeholder {
        color: #94a3b8;
    }

    /* Focus bonito */
    .ticket-consulta-form input:focus {
        outline: none;
        border-color: #2563eb;
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
        background: #ffffff;
    }

/* Botão alinhado */
.ticket-consulta-form button {
    align-self: flex-start;
    padding: 10px 18px;
}

/* MOBILE */
@media (max-width: 640px) {
    .ticket-input-group {
        flex-direction: column;
        align-items: stretch;
    }

    .ticket-or {
        text-align: center;
    }

    .ticket-consulta-form button {
        width: 100%;
    }
}

.ticket-card-consulta.btn-open-ticket {
    cursor: pointer;
}

footer {
    background: transparent;
    color: #6b7280;
    font-size: 0.85rem;
    text-align: center;
    padding: 20px 0;
}
