@charset "ISO-8859-1";

/* ========================================
   RESET E BASE
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --neon-blue: #00A0E0;
    --neon-cyan: #00c0f3;
    --neon-pink: #FF2BA6;
    --neon-magenta: #C00080;
    --neon-purple: #600040;
    --ice-white: #E0E0E0;
    --dark-blue: #002060;
    --btn-color: #00c0f3;
    --btn-color-dark: #0098c7;
    --btn-color-light: #e0f4ff;
    --border-gold: #d4af37;
    --gold-dark: #b8960c;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #0a0e17 0%, #0f131e 100%);
    color: #e8edf5;
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ========================================
   HEADER
   ======================================== */
.header {
    background: rgba(255, 205, 85, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 2px solid #00c0f3;
    padding: 8px 0;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

/* ========================================
   LOGO
   ======================================== */
.logo-area {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    background: #ffffff;
    padding: 16px 35px 16px 25px;
    border-radius: 39px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2), 0 3px 8px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    margin-top: -34px;
    margin-bottom: -35px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    z-index: 10;
    top: 31px;
    position: relative;
}

.logo-area:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.logo-icon {
    width: 141px;
    height: 138px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #c09f398f;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1), 0 3px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.8s ease-in-out;
}

.logo-icon.rotate {
    transform: rotate(360deg);
}

.logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease-in-out;
}

/* ========================================
   SEARCH BAR - COR #00c0f3
   ======================================== */
.search-bar {
    flex: 1;
    max-width: 45%;
    display: flex;
    background: #1f2937;
    border: 1px solid var(--neon-purple);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
}

.search-bar:focus-within {
    border-color: #00c0f3;
    box-shadow: 0 0 0 2px rgba(0, 192, 243, 0.2);
}

.search-bar form {
    display: flex;
    flex: 1;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

.search-bar form input[type="text"] {
    flex: 1;
    padding: 10px 18px;
    border: none;
    background: transparent;
    outline: none;
    font-size: 0.85rem;
    color: #ffffff;
    min-width: 0;
    height: 100%;
}

.search-bar form input[type="text"]::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

/* ===== BOTÃO DE PESQUISA - COR #00c0f3 ===== */
.search-bar form button[type="submit"] {
    background: linear-gradient(135deg, #00c0f3 0%, #0098c7 100%);
    border: none;
    padding: 0 20px;
    color: white;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.search-bar form button[type="submit"]:hover {
    background: linear-gradient(135deg, #FF2BA6 0%, #C00080 100%);
}

.search-bar form button[type="submit"] i {
    font-size: 0.9rem;
}

/* ========================================
   NAV MENU
   ======================================== */
.nav-menu {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-left: 0;
}

.nav-menu a {
    text-decoration: none;
    color: #1f2937;
    font-weight: 600;
    transition: var(--transition);
    font-size: 0.85rem;
    padding: 6px 16px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(4px);
}

.nav-menu a:hover {
    color: #FF2BA6;
    background: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* ========================================
   LOGIN CONTAINER
   ======================================== */
.login-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    min-height: calc(100vh - 200px);
}

.login-card {
    background: rgba(31, 41, 55, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 32px;
    padding: 48px 40px;
    max-width: 480px;
    width: 100%;
    border: 1px solid rgba(0, 192, 243, 0.2);
    box-shadow: 0 20px 35px -8px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
}

.login-card:hover {
    border-color: rgba(0, 192, 243, 0.3);
    box-shadow: 0 25px 50px -8px rgba(0, 192, 243, 0.1);
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-header i {
    font-size: 3rem;
    color: #00c0f3;
    margin-bottom: 16px;
    background: rgba(0, 192, 243, 0.1);
    padding: 16px;
    border-radius: 50%;
    border: 2px solid rgba(0, 192, 243, 0.2);
}

.login-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #00c0f3;
    letter-spacing: -0.5px;
}

.login-header p {
    font-size: 0.85rem;
    opacity: 0.7;
    margin-top: 8px;
}

/* ========================================
   FORMULÁRIO
   ======================================== */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.85rem;
    color: #e8edf5;
}

.input-group {
    position: relative;
}

.input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #00c0f3;
    font-size: 1rem;
    z-index: 1;
    transition: var(--transition);
}

.form-group input {
    width: 100%;
    padding: 14px 16px 14px 45px;
    border-radius: 12px;
    border: 1px solid rgba(0, 192, 243, 0.3);
    background: rgba(255, 255, 255, 0.05);
    color: #e8edf5;
    font-size: 0.95rem;
    transition: var(--transition);
    outline: none;
}

.form-group input:focus {
    border-color: #00c0f3;
    box-shadow: 0 0 0 2px rgba(0, 192, 243, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.form-group input:focus + i,
.form-group input:focus ~ .input-group i {
    color: #FF2BA6;
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* ========================================
   BOTÃO LOGIN - COR #00c0f3
   ======================================== */
.btn-login {
    width: 100%;
    background: linear-gradient(135deg, #00c0f3 0%, #0098c7 100%);
    padding: 14px;
    border-radius: 40px;
    color: white;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 192, 243, 0.3);
}

.btn-login:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 25px rgba(0, 192, 243, 0.5);
}

.btn-login:active {
    transform: scale(0.98);
}

.btn-login .spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.btn-login.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-login.loading .spinner {
    display: inline-block;
}

.btn-login.loading .btn-text {
    visibility: hidden;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ========================================
   LOGIN FOOTER
   ======================================== */
.login-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 192, 243, 0.2);
}

.login-footer p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.login-footer a {
    color: #00c0f3;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.login-footer a:hover {
    color: #FF2BA6;
    text-shadow: 0 0 10px rgba(255, 43, 166, 0.3);
}

/* ========================================
   TOAST OVERLAY - MODAL FLUTUANTE
   ======================================== */
.toast-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.toast-overlay.show {
    display: flex;
}

.toast-modal {
    background: linear-gradient(135deg, #1a1a2e, #0f131e);
    border-radius: 28px;
    padding: 40px;
    max-width: 450px;
    width: 90%;
    border: 1px solid rgba(0, 192, 243, 0.2);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8);
    text-align: center;
    animation: modalFadeIn 0.4s ease;
    position: relative;
}

.toast-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 2rem;
}

.toast-icon.error {
    background: rgba(239, 68, 68, 0.15);
    border: 2px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.toast-icon.success {
    background: rgba(16, 185, 129, 0.15);
    border: 2px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
}

.toast-icon.warning {
    background: rgba(245, 158, 11, 0.15);
    border: 2px solid rgba(245, 158, 11, 0.3);
    color: #f59e0b;
}

.toast-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.toast-title.error {
    color: #ef4444;
}

.toast-title.success {
    color: #10b981;
}

.toast-title.warning {
    color: #f59e0b;
}

.toast-message {
    color: #d1d5db;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.toast-close-btn {
    background: linear-gradient(135deg, #00c0f3 0%, #0098c7 100%);
    border: none;
    padding: 12px 30px;
    border-radius: 40px;
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 192, 243, 0.3);
}

.toast-close-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(0, 192, 243, 0.5);
}

.toast-close-btn:active {
    transform: scale(0.95);
}

/* ========================================
   ANIMAÇÕES
   ======================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: linear-gradient(135deg, #000000 0%, #0a0a0a 100%);
    color: var(--ice-white);
    margin-top: auto;
    padding: 48px 0 24px;
    border-top: 3px solid #00c0f3;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        #00A0E0 0%,
        #00c0f3 25%,
        #FF2BA6 50%,
        #C00080 75%,
        #600040 100%);
    animation: neonMove 3s linear infinite;
    background-size: 200% 100%;
}

@keyframes neonMove {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 200% 0%;
    }
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.footer-col h4 {
    color: #00c0f3;
    margin-bottom: 16px;
    font-size: 0.95rem;
    letter-spacing: 1px;
    text-shadow: 0 0 5px rgba(0, 192, 243, 0.3);
}

.footer-col p,
.footer-col a {
    color: var(--ice-white);
    text-decoration: none;
    font-size: 0.75rem;
    line-height: 1.9;
    display: block;
    transition: var(--transition);
}

.footer-col a:hover {
    color: #FF2BA6;
    padding-left: 4px;
    text-shadow: 0 0 5px rgba(255, 43, 166, 0.3);
}

.social-icons {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.social-icons a {
    background: rgba(0, 160, 224, 0.15);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    border: 1px solid #00A0E0;
    text-decoration: none;
    color: var(--ice-white);
}

.social-icons a:hover {
    background: #FF2BA6;
    color: #000000;
    transform: translateY(-3px);
    border-color: #FF2BA6;
    box-shadow: 0 0 15px rgba(255, 43, 166, 0.5);
}

.copyright {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(224, 224, 224, 0.1);
    font-size: 0.7rem;
    color: var(--ice-white);
    margin-top: 20px;
    line-height: 1.8;
    position: relative;
    z-index: 2;
}

/* ========================================
   RESPONSIVIDADE
   ======================================== */

/* Tablets e telas médias */
@media (max-width: 1068px) {
    .logo-area {
        display: none !important;
    }

    .header-content {
        gap: 15px;
    }

    .search-bar {
        max-width: 100%;
        width: 100%;
    }

    .nav-menu {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .header-content {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .search-bar {
        max-width: 100%;
        width: 100%;
    }

    .search-bar form input[type="text"] {
        font-size: 0.8rem;
        padding: 8px 14px;
    }

    .search-bar form button[type="submit"] {
        padding: 0 14px;
        min-width: 40px;
    }

    .nav-menu {
        gap: 8px;
        justify-content: center;
        width: 100%;
    }

    .nav-menu a {
        font-size: 0.75rem;
        padding: 4px 12px;
    }

    .login-container {
        padding: 40px 16px;
        min-height: calc(100vh - 160px);
    }

    .login-card {
        padding: 32px 24px;
        margin: 0;
        border-radius: 24px;
    }

    .login-header h2 {
        font-size: 1.4rem;
    }

    .login-header i {
        font-size: 2.5rem;
        padding: 14px;
    }

    .login-header p {
        font-size: 0.8rem;
    }

    .form-group {
        margin-bottom: 18px;
    }

    .form-group label {
        font-size: 0.8rem;
    }

    .form-group input {
        padding: 12px 14px 12px 40px;
        font-size: 0.9rem;
    }

    .input-group i {
        left: 12px;
        font-size: 0.9rem;
    }

    .btn-login {
        padding: 12px;
        font-size: 0.9rem;
    }

    .login-footer p {
        font-size: 0.8rem;
    }

    .toast-modal {
        padding: 28px 20px;
        margin: 15px;
        border-radius: 24px;
    }

    .toast-icon {
        width: 60px;
        height: 60px;
        font-size: 1.7rem;
    }

    .toast-title {
        font-size: 1.1rem;
    }

    .toast-message {
        font-size: 0.85rem;
    }

    .toast-close-btn {
        padding: 10px 24px;
        font-size: 0.8rem;
    }

    .footer-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 30px;
    }

    .footer-col h4 {
        font-size: 0.85rem;
    }

    .footer-col p,
    .footer-col a {
        font-size: 0.7rem;
    }
}

/* Smartphones */
@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }

    .login-container {
        padding: 30px 8px;
        min-height: calc(100vh - 140px);
    }

    .login-card {
        padding: 24px 16px;
        border-radius: 20px;
    }

    .login-header {
        margin-bottom: 24px;
    }

    .login-header i {
        font-size: 2rem;
        padding: 12px;
        margin-bottom: 12px;
    }

    .login-header h2 {
        font-size: 1.2rem;
    }

    .login-header p {
        font-size: 0.75rem;
    }

    .form-group {
        margin-bottom: 14px;
    }

    .form-group label {
        font-size: 0.75rem;
        margin-bottom: 6px;
    }

    .form-group input {
        padding: 10px 12px 10px 36px;
        font-size: 0.85rem;
        border-radius: 10px;
    }

    .input-group i {
        left: 10px;
        font-size: 0.8rem;
    }

    .btn-login {
        padding: 10px;
        font-size: 0.85rem;
        border-radius: 30px;
    }

    .login-footer {
        margin-top: 18px;
        padding-top: 16px;
    }

    .login-footer p {
        font-size: 0.75rem;
    }

    .toast-modal {
        padding: 20px 16px;
        margin: 10px;
        border-radius: 20px;
    }

    .toast-icon {
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
        margin-bottom: 12px;
    }

    .toast-title {
        font-size: 1rem;
    }

    .toast-message {
        font-size: 0.8rem;
        margin-bottom: 18px;
    }

    .toast-close-btn {
        padding: 8px 20px;
        font-size: 0.75rem;
        border-radius: 30px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .footer-col h4 {
        font-size: 0.8rem;
        margin-bottom: 12px;
    }

    .footer-col p,
    .footer-col a {
        font-size: 0.65rem;
        line-height: 1.8;
    }

    .social-icons a {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }

    .copyright {
        font-size: 0.6rem;
        padding-top: 16px;
        margin-top: 16px;
    }
}

/* Smartphones muito pequenos */
@media (max-width: 360px) {
    .login-card {
        padding: 18px 12px;
        border-radius: 16px;
    }

    .login-header i {
        font-size: 1.7rem;
        padding: 10px;
    }

    .login-header h2 {
        font-size: 1rem;
    }

    .form-group input {
        padding: 8px 10px 8px 32px;
        font-size: 0.8rem;
    }

    .input-group i {
        left: 8px;
        font-size: 0.75rem;
    }

    .btn-login {
        padding: 8px;
        font-size: 0.8rem;
    }

    .login-footer p {
        font-size: 0.7rem;
    }

    .toast-modal {
        padding: 16px 12px;
        margin: 8px;
    }

    .toast-icon {
        width: 42px;
        height: 42px;
        font-size: 1.2rem;
    }

    .toast-title {
        font-size: 0.9rem;
    }

    .toast-message {
        font-size: 0.75rem;
    }

    .toast-close-btn {
        padding: 6px 16px;
        font-size: 0.7rem;
    }
}

/* ========================================
   TEMA CLARO (opcional - mantido para consistência)
   ======================================== */
body.light {
    background: linear-gradient(135deg, #f5f7fa 0%, #eef2f7 100%);
    color: #1a1a2e;
}

body.light .header {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 2px solid #00c0f3;
}

body.light .logo-area {
    background: #f0f0f0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

body.light .nav-menu a {
    color: #1f2937;
    background: rgba(0, 0, 0, 0.05);
}

body.light .nav-menu a:hover {
    background: rgba(0, 0, 0, 0.1);
}

body.light .search-bar {
    background: #ffffff;
    border: 1px solid #ddd;
}

body.light .search-bar form input[type="text"] {
    color: #1f2937;
}

body.light .search-bar form input[type="text"]::placeholder {
    color: #999;
}

body.light .login-card {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 192, 243, 0.3);
}

body.light .login-header h2 {
    color: #1a1a2e;
}

body.light .login-header p {
    color: #6b7280;
}

body.light .form-group label {
    color: #1f2937;
}

body.light .form-group input {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.2);
    color: #1f2937;
}

body.light .form-group input:focus {
    border-color: #00c0f3;
    background: rgba(255, 255, 255, 0.8);
}

body.light .form-group input::placeholder {
    color: rgba(0, 0, 0, 0.3);
}

body.light .login-footer p {
    color: #6b7280;
}

body.light .login-footer a {
    color: #00c0f3;
}

body.light .login-footer a:hover {
    color: #FF2BA6;
}

body.light .footer {
    background: linear-gradient(135deg, #e0e0e0 0%, #cccccc 100%);
    border-top: 3px solid #00c0f3;
}

body.light .footer-col h4 {
    color: #1a1a2e;
}

body.light .footer-col p,
body.light .footer-col a {
    color: #4a4a4a;
}

body.light .footer-col a:hover {
    color: #FF2BA6;
}

body.light .copyright {
    color: #4a4a4a;
    border-top-color: rgba(0, 0, 0, 0.1);
}

body.light .social-icons a {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.2);
    color: #1f2937;
}

body.light .social-icons a:hover {
    background: #FF2BA6;
    color: white;
    border-color: #FF2BA6;
}

body.light .toast-modal {
    background: linear-gradient(135deg, #f5f7fa, #eef2f7);
    border-color: rgba(0, 192, 243, 0.3);
}

body.light .toast-message {
    color: #4a4a4a;
}