/* =================================================================== */
/* 1. IMPORTAÇÕES E ANIMAÇÕES GLOBAIS                                  */
/* =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&display=swap');

@keyframes moveLights {
    0% { background-position: 0% 50%, 50% 100%, 100% 0%; }
    25% { background-position: 50% 0%, 100% 50%, 0% 100%; }
    50% { background-position: 100% 100%, 0% 50%, 50% 0%; }
    75% { background-position: 50% 100%, 100% 0%, 0% 0%; }
    100% { background-position: 0% 50%, 50% 100%, 100% 0%; }
}

@keyframes blinkError {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* =================================================================== */
/* 2. ESTILOS GERAIS (BODY, TÍTULOS, TEXTOS)                           */
/* =================================================================== */

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    color: #e0e0e0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #0c0a15;
    background-image: 
        radial-gradient(circle at center, rgba(168, 50, 121, 0.4), transparent 25%),
        radial-gradient(circle at center, rgba(72, 50, 168, 0.4), transparent 25%),
        radial-gradient(circle at center, rgba(72, 50, 168, 0.4), transparent 25%);
    background-size: 300% 300%;
    animation: moveLights 15s linear infinite;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
    margin: auto;
}

.subtitle {
    font-size: 1.1rem;
    color: #a0a0a0;
    margin-bottom: 10px;
}

.terms {
    color: #ffffff;
    font-size: 15px;
}

/* =================================================================== */
/* 3. LAYOUT (CONTAINERS PRINCIPAIS)                                   */
/* =================================================================== */

.login-container {
    text-align: center;
    max-width: 400px;
    padding: 20px;
}

.dashboard-container {
    width: 100%;
    max-width: 1100px;
    padding: 40px 20px;
    text-align: center;
}

/* =================================================================== */
/* 4. COMPONENTES E ESTILOS DA PÁGINA DE LOGIN                         */
/* =================================================================== */

#login-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.input-group input {
    width: 100%;
    padding: 14px 15px;
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: #ffffff;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.input-group input:focus {
    outline: none;
    border-color: rgba(168, 50, 121, 0.8);
    box-shadow: 0 0 10px rgba(168, 50, 121, 0.3);
}

.input-group input::placeholder {
    color: #a0a0a0;
}

.forgot-password-link {
    color: #b0b0b0;
    font-size: 0.85rem;
    text-decoration: none;
    text-align: right;
    margin-top: -5px;
    transition: color 0.3s;
}

.forgot-password-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

#error-message.show-error {
    animation: blinkError 1s infinite;
}

.separator {
    display: flex;
    align-items: center;
    text-align: center;
    color: #a0a0a0;
    margin: 25px 0;
}

.separator span {
    padding: 0 15px;
}

.separator::before,
.separator::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

#login-btn {
    width: 100%;
    padding: 14px;
    background-color: #31004d;
    color: #ffffff;
    border: none;
    border-radius: 9999px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
    align-self: center;
}

#login-btn:hover {
    background-color: #1f0031;
}

#google-login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    color: #333333;
    font-size: 1rem;
    font-weight: 500;
    border: 1px solid #c0c0c0;
    border-radius: 9999px;
    padding: 12px 24px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    width: 80%;
    max-width: 320px;
}

#google-login-btn:hover {
    background-color: #c7c7c7;
}

#google-login-btn img {
    width: 20px;
    height: 20px;
    margin-right: 12px;
}

#github-login-btn:hover {
    background-color: #111;
    color: #ffffff;
    border-color: #111;
}

#github-login-btn:hover img {
    filter: invert(1);
}

#error-message {
    color: #ff5555;
    font-weight: 500;
    min-height: 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 320px;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 500;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 10px;
}

.btn-primary {
    background-color: #3d0061;
    color: #ffffff;
    border-radius: 9999px;
}

.btn-primary:hover {
    background-color: #070aac;
    transform: scale(1.05);
}

.pricing-card.recommended .btn-primary:hover {
    background-color: #070aac;
    transform: scale(1.05);
}

.btn-social {
    background-color: #ffffff;
    color: #333333;
    border-color: #c0c0c0;
    border-radius: 9999px;
}

.btn-social:hover {
    transform: scale(1.05);
}

.btn-social img {
    width: 20px;
    height: 20px;
    margin-right: 12px;
}

.btn-secondary {
    background-color: transparent;
    color: #a0a0a0;
    border-color: #444;
    border-radius: 8px;
}

.btn-secondary:hover {
    background-color: #a0a0a0;
    color: #111;
    border-color: #a0a0a0;
}

/* =================================================================== */
/* 5. ESTILOS DA PÁGINA DO DASHBOARD                                   */
/* =================================================================== */

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 350px);
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.pricing-card {
    background-color: rgba(26, 26, 26, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 30px;
    text-align: left;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.3);
}

.pricing-card h3 {
    font-size: 1.5rem;
    color: #ffffff;
    margin-top: 0;
}

.pricing-card .tagline {
    color: #a0a0a0;
    font-size: 0.9rem;
    margin-bottom: 20px;
    min-height: 40px;
}

.pricing-card .price {
    margin-bottom: 10px;
}

.pricing-card .price .amount {
    font-size: 2.75rem;
    font-weight: 700;
    color: #ffffff;
}

.pricing-card .price .period {
    font-size: 1rem;
    color: #a0a0a0;
    margin-left: 5px;
}

.pricing-card hr {
    border: none;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.1);
    margin: 20px 0;
}

.pricing-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1;
}

.pricing-card ul li {
    color: #e0e0e0;
    margin-bottom: 12px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pricing-card ul li .icon-check {
    color: #2ecc71;
    font-weight: bold;
    font-size: 1.2em;
}

.pricing-card ul li .icon-cross {
    color: #e74c3c;
    font-weight: bold;
    font-size: 1.2em;
}

.feature-divider {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin: 15px 0 !important;
    padding: 0 !important;
    height: 1px;
    display: block !important;
    gap: 0 !important;
}

.pricing-card.recommended {
    border-color: #a83279;
    border-width: 2px;
    transform: scale(1.05);
    position: relative;
    overflow: hidden;
}

.pricing-card.recommended .btn-primary {
    background-color: #3d0061;
}

.recommended-badge {
    position: absolute;
    top: 15px;
    right: -35px;
    background-color: #a83279;
    color: white;
    padding: 5px 40px;
    transform: rotate(45deg);
    font-size: 0.75rem;
    font-weight: bold;
    letter-spacing: 1px;
}

#logout-btn {
    position: absolute;
    top: 25px;
    right: 30px;
    width: auto;
    z-index: 10;
    background-color: #31004d;
    color: #ffffff;
    border: none;
    border-radius: 9999px; /* Mantém o formato de pílula */
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    padding: 14px;
    transition: all 0.3s ease; /* Transição suave para todos os efeitos */
}

#logout-btn:hover {
    background-color: #1f0031;
    transform: scale(1.05); /* Efeito de crescimento */
}

/* =================================================================== */
/* 6. ESTILOS RESPONSIVOS (MEDIA QUERIES)                              */
/* =================================================================== */

@media (max-width: 1150px) {
    .pricing-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    .pricing-card.recommended {
        transform: scale(1);
    }
}

/* =================================================================== */
/* 7. NOVOS ESTILOS PARA O DASHBOARD                                   */
/* =================================================================== */

.implementation-cost {
    font-size: 0.9em;
    color: #888;
    margin-top: -10px;
    margin-bottom: 20px;
}

.feature-comparison {
    margin-top: 80px;
    width: 100%;
}

.feature-comparison h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.2rem;
    color: #ffffff;
}

.feature-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
    background-color: rgba(26, 26, 26, 0.4);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-table th, .feature-table td {
    padding: 20px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-table thead th {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    border-bottom-width: 2px;
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

.feature-table tbody td:first-child {
    text-align: left;
    font-weight: 500;
    color: #e0e0e0;
}

.feature-table tbody tr:last-child td {
    border-bottom: none;
}

.feature-category {
    text-align: left;
    font-weight: bold;
    font-size: 1.1em;
    background-color: rgba(0, 0, 0, 0.3);
    color: #ffffff;
}

.feature-category td {
    padding-top: 15px;
    padding-bottom: 15px;
    padding-left: 20px;
}

.check-mark {
    color: #2ecc71;
    font-size: 1.5em;
    font-weight: bold;
}

.cross-mark {
    color: #e74c3c;
    font-size: 1.5em;
    font-weight: bold;
}

@media (max-width: 768px) {
    .feature-table th, .feature-table td {
        padding: 10px 5px;
        font-size: 0.9rem;
    }
    .feature-table thead th {
        font-size: 1rem;
    }
}
