/* ════════════════════════════════════════════════════════
   RESET GERAL
   ════════════════════════════════════════════════════════ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Raleway", sans-serif;
    background: #213546;
    color: #fff;
    min-height: 100vh;
}

/* ════════════════════════════════════════════════════════
   LOGIN
   ════════════════════════════════════════════════════════ */
.login-body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #0b0527 0%, #1b2f59 50%, #0a2867 100%);
    position: relative;
    overflow: hidden;
}

.login-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}
  /* Área do Logo */
        .logo {
            height: 90px;
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 20px;
        }

        .logo img {
            max-width: 100%;
            max-height: 80px;
            width: auto;
            height: auto;
            object-fit: contain;
            transition: transform 0.3s ease;
        }

        .card:hover .logo img {
            transform: scale(1.09);
        }

/* Background Decorativo Animado */
.login-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    animation: float 20s infinite ease-in-out;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: #73b933;
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: #00d4ff;
    bottom: -50px;
    left: -50px;
    animation-delay: 5s;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: #764ba2;
    top: 50%;
    left: 50%;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(20px, -20px) scale(1.05);
    }
    50% {
        transform: translate(-20px, 20px) scale(0.95);
    }
    75% {
        transform: translate(10px, 10px) scale(1.02);
    }
}

/* Card Principal */
.login-card {
    background: rgba(184, 179, 179, 0.95);
    backdrop-filter: blur(20px);
    padding: 48px 40px;
    border-radius: 24px;
    width: 100%;
    max-width: 420px;
    text-align: center;
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 2;
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animação de Erro */
.login-card.shake {
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

/* Logo */
.login-logo {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #73b933 0%, #0a2867 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    box-shadow: 0 10px 30px rgba(115, 185, 51, 0.3);
}

.login-logo i {
    font-size: 36px;
    color: white;
}

/* Header */
.login-header h1 {
    font-family: "Barlow", sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #0a2867;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.login-header .subtitle {
    font-family: "Raleway", sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #73b933;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.login-header .description {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 32px;
}

/* Formulário */
.login-form {
    text-align: left;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #0a2867;
    margin-bottom: 10px;
}

.form-group label i {
    color: #73b933;
}

.input-wrapper {
    position: relative;
}

.input-wrapper input {
    width: 100%;
    padding: 16px 48px 16px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    font-family: "Raleway", sans-serif;
    background: #f8f9fa;
    color: #0a2867;
    transition: all 0.3s ease;
}

.input-wrapper input:focus {
    outline: none;
    border-color: #73b933;
    background: white;
    box-shadow: 0 0 0 4px rgba(115, 185, 51, 0.15);
}

.input-wrapper input::placeholder {
    color: #aaa;
}

.toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s;
}

.toggle-password:hover {
    color: #73b933;
}

/* Opções do Formulário */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    font-size: 0.85rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    cursor: pointer;
}

.remember-me input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #73b933;
    cursor: pointer;
}

.forgot-password {
    color: #0a2867;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.forgot-password:hover {
    color: #25d366;
    text-decoration: underline;
}

.forgot-password i {
    font-size: 1.1em;
}

/* Botão de Login */
.btn-login {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #73b933 0%, #5a9a28 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    font-family: "Raleway", sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(115, 185, 51, 0.3);
}

.btn-login:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(115, 185, 51, 0.4);
}

.btn-login:active {
    transform: translateY(-1px);
}

.btn-login.loading {
    pointer-events: none;
    opacity: 0.8;
}

/* Mensagem de Erro */
.error-message {
    display: none;
    margin-top: 16px;
    padding: 12px 16px;
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid #e74c3c;
    border-radius: 8px;
    color: #e74c3c;
    font-size: 0.85rem;
    text-align: center;
    font-weight: 600;
}

.error-message.show {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Rodapé do Card */
.login-footer {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.login-footer p {
    font-size: 0.8rem;
    color: #888;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.login-footer i {
    color: #73b933;
}

/* Copyright */
.login-copyright {
    margin-top: 24px;
    text-align: center;
}

.login-copyright p {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Animação de Sucesso */
@keyframes successPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(115, 185, 51, 0.4);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(115, 185, 51, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(115, 185, 51, 0);
    }
}

.login-card.success {
    animation: successPulse 0.6s ease;
}

/* ════════════════════════════════════════════════════════
   DASHBOARD (lancamento.html)
   ════════════════════════════════════════════════════════ */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(135deg, #123546 0%, #0a2867 100%);
    padding: 20px 20px;
    border-bottom: 3px solid #73b933;
    color: white;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.header h1 {
    font-family: "Barlow", sans-serif;
    font-size: clamp(1.5rem, 3.8vw, 2.1rem);
    font-weight: 700;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.header h1 i {
    color: #73b933;
}

/* User Info */
.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255,255,255,0.1);
    padding: 8px 16px;
    border-radius: 10px;
}

.user-info span {
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-info i {
    color: #73b933;
}

.user-role {
    background: #73b933;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Botões do Header */
.top-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.top-buttons .btn-fila-aros,
.top-buttons .logout {
    padding: 10px 16px;
    font-size: 0.9rem;
    border-radius: 10px;
    cursor: pointer;
    border: none;
    font-weight: 600;
    font-family: "Raleway", sans-serif;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-fila-aros {
    background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
    color: white;
}

.btn-fila-aros:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.4);
}

.logout {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
}

.logout:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

/* Campo de Busca */
.search-container {
    width: 100%;
    max-width: 400px;
    margin-top: 15px;
    position: relative;
}

.search-container input {
    width: 100%;
    padding: 12px 45px 12px 45px;
    font-size: 0.95rem;
    border-radius: 12px;
    border: 2px solid rgba(255,255,255,0.2);
    outline: none;
    background: rgba(255,255,255,0.95);
    color: #0a2867;
    transition: all 0.3s ease;
}

.search-container input:focus {
    border-color: #73b933;
    box-shadow: 0 0 0 4px rgba(115,185,51,0.3);
}

.search-container i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}

/* Grid */
.grid {
    max-width: 1200px;
    margin: auto;
    padding: 30px 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}

/* Card */
.card {
    background: linear-gradient(135deg, #e7eae7 0%, #cad5e4 100%);
    color: #042645;
    padding: 24px 20px;
    border-radius: 16px;
    text-align: center;
    font-weight: 600;
    text-decoration: none;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    display: block;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #73b933 0%, #0a2867 100%);
}

.card.hidden {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    display: none !important;
}

.card:hover {
    background: linear-gradient(135deg, #cad5e4 0%, #b0c4de 100%);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 16px 40px rgba(0,0,0,0.25);
}

.card:hover::before {
    width: 100%;
    opacity: 0.1;
    transition: width 0.3s ease;
}

.card h3 {
    font-size: 1rem;
    margin-bottom: 8px;
    color: #0a2867;
}

.card p {
    font-size: 0.85rem;
    color: #666;
    font-weight: 400;
}

/* No Results */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.no-results i {
    font-size: 48px;
    margin-bottom: 20px;
    color: #ccc;
}

/* ════════════════════════════════════════════════════════
   RESPONSIVO
   ════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .user-info {
        width: 100%;
        justify-content: center;
    }

    .top-buttons {
        width: 100%;
        justify-content: center;
    }

    .search-container {
        max-width: 100%;
    }

    .grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 12px;
        padding: 20px 15px;
    }

    .card {
        padding: 18px 14px;
    }
}

@media (max-width: 480px) {
    .login-card {
        margin: 20px;
        padding: 36px 24px;
        border-radius: 20px;
    }

    .login-logo {
        width: 70px;
        height: 70px;
    }

    .login-logo i {
        font-size: 30px;
    }

    .login-header h1 {
        font-size: 1.5rem;
    }

    .login-header .subtitle {
        font-size: 0.9rem;
    }

    .form-options {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .btn-login {
        padding: 14px 20px;
    }

    .top-buttons .btn-fila-aros,
    .top-buttons .logout {
        flex: 1;
        min-width: 120px;
        justify-content: center;
    }

    .grid {
        grid-template-columns: 1fr 1fr;
    }
}