/* ========================================
   AUTHENTICATION BOX
   ======================================== */

.auth-box {
    max-width: 500px;
    margin: 0 auto 2rem;
    background-color: var(--off-white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.auth-tabs {
    display: flex;
    background-color: var(--cinza);
}

.auth-tab {
    flex: 1;
    padding: 1rem;
    border: none;
    background: none;
    font-size: 1rem;
    font-weight: 500;
    color: var(--preto-suave);
    cursor: pointer;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
}

.auth-tab:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

.auth-tab.active {
    background-color: var(--branco);
    color: var(--vinho-escuro);
    border-bottom-color: var(--vinho-escuro);
}

.auth-form {
    display: none;
    padding: 2rem;
}

.auth-form.active {
    display: block;
}

.auth-subtitle {
    text-align: center;
    color: var(--preto-suave);
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

/* User Info Bar */
.user-info-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: var(--vinho-escuro);
    color: var(--branco);
    border-radius: 8px 8px 0 0;
    margin-bottom: 1.5rem;
}

.user-info-bar i {
    margin-right: 0.5rem;
}

.btn-logout {
    background: none;
    border: 1px solid var(--branco);
    color: var(--branco);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.btn-logout:hover {
    background-color: var(--branco);
    color: var(--vinho-escuro);
}

.btn-logout i {
    margin-right: 0.3rem;
}

/* Error Messages */
.error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 0.75rem;
    border-radius: 6px;
    border: 1px solid #f5c6cb;
    font-size: 0.9rem;
}

/* ========================================
   AUTH SECTION (INDEX.HTML)
   ======================================== */

.auth-section {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: linear-gradient(135deg, var(--rosa-suave) 0%, var(--dourado-suave) 100%);
}

.auth-container {
    max-width: 500px;
    width: 100%;
    background-color: var(--branco);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.auth-header {
    text-align: center;
    padding: 2rem 2rem 1rem;
    background: linear-gradient(135deg, var(--rosa-claro) 0%, var(--dourado-suave) 100%);
    color: var(--preto-suave);
}

.auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.auth-logo i {
    font-size: 2.5rem;
    color: var(--vinho-escuro);
}

.auth-logo h1 {
    font-size: 1.75rem;
    margin: 0;
    font-weight: 600;
}

.auth-subtitle {
    font-size: 1rem;
    opacity: 1;
    margin: 0;
    color: var(--preto-suave);
    font-weight: 500;
}

.auth-links {
    text-align: center;
    margin-top: 1rem;
}

.auth-links a {
    color: var(--vinho-escuro);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.auth-links a:hover {
    color: var(--vinho-medio);
    text-decoration: underline;
}

.auth-footer {
    text-align: center;
    padding: 1.5rem 2rem;
    background-color: var(--rosa-claro);
    border-top: 1px solid var(--rosa-suave);
}

.auth-footer p {
    margin: 0 0 0.75rem;
    color: var(--preto-suave);
    font-size: 0.9rem;
    font-weight: 500;
}

.link-download {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--vinho-escuro);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.link-download:hover {
    color: var(--vinho-medio);
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
    color: var(--preto-suave);
    opacity: 0.6;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #ddd;
}

.divider span {
    padding: 0 1rem;
    font-size: 0.9rem;
}

.btn-google {
    width: 100%;
    padding: 0.875rem;
    background-color: var(--branco);
    border: 2px solid #ddd;
    color: var(--preto-suave);
    font-size: 1rem;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.btn-google:hover {
    background-color: #f8f9fa;
    border-color: #bbb;
}

.btn-google i {
    font-size: 1.25rem;
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    padding: 0.75rem;
    border-radius: 6px;
    border: 1px solid #c3e6cb;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.success-message i {
    font-size: 1.25rem;
}

/* ========================================
   SEARCH SECTION (SEARCH.HTML)
   ======================================== */

.search-section {
    min-height: calc(100vh - 200px);
    padding: 3rem 1rem;
    background: linear-gradient(135deg, var(--rosa-suave) 0%, var(--dourado-suave) 100%);
}

.search-container {
    max-width: 600px;
    margin: 0 auto;
}

.search-header {
    text-align: center;
    color: var(--preto-suave);
    margin-bottom: 2rem;
}

.search-header i {
    font-size: 3rem;
    color: var(--vinho-escuro);
    margin-bottom: 1rem;
}

.search-header h1 {
    font-size: 2rem;
    margin: 0 0 0.5rem;
}

.search-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
}

.search-form {
    background-color: var(--branco);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    margin-bottom: 2rem;
}

.search-input {
    width: 100%;
    padding: 1rem;
    font-size: 1.25rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    border: 2px solid var(--vinho-escuro);
    border-radius: 8px;
}

.search-input:focus {
    outline: none;
    border-color: var(--dourado);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.form-hint {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--preto-suave);
    font-size: 0.9rem;
    margin-top: 0.5rem;
    opacity: 0.7;
}

.btn-large {
    padding: 1rem;
    font-size: 1.1rem;
}

.quick-access {
    background-color: var(--branco);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    text-align: center;
}

.quick-access h3 {
    color: var(--vinho-escuro);
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
}

.quick-access p {
    color: var(--preto-suave);
    margin: 0 0 1rem;
    opacity: 0.8;
}

.quick-access .btn-secondary {
    background: linear-gradient(135deg, var(--vinho-escuro), var(--vinho-medio));
    color: var(--branco) !important;
    border: none;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(128, 0, 0, 0.3);
}

.quick-access .btn-secondary:hover {
    background: linear-gradient(135deg, var(--vinho-medio), var(--vinho-escuro));
    color: var(--branco) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(128, 0, 0, 0.4);
}

.help-section {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.help-section h4 {
    color: var(--vinho-escuro);
    margin: 0 0 1rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.help-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.help-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
}

.help-list li:last-child {
    border-bottom: none;
}

.help-list i {
    color: var(--dourado);
    font-size: 1.25rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.help-list span {
    color: var(--preto-suave);
    line-height: 1.5;
}

.user-name {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--dourado);
    font-weight: 600;
    cursor: pointer;
}

.user-name i {
    color: var(--vinho-escuro);
}

/* Responsive */
@media (max-width: 768px) {
    .auth-box {
        margin: 0 1rem 2rem;
    }
    
    .auth-tab {
        font-size: 0.9rem;
        padding: 0.75rem;
    }
    
    .auth-form {
        padding: 1.5rem;
    }
    
    .user-info-bar {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .auth-container {
        margin: 1rem;
    }
    
    .auth-header {
        padding: 1.5rem 1rem 0.75rem;
    }
    
    .auth-logo h1 {
        font-size: 1.5rem;
    }
    
    .search-header h1 {
        font-size: 1.5rem;
    }
    
    .search-form {
        padding: 1.5rem;
    }
    
    .search-input {
        font-size: 1rem;
        padding: 0.875rem;
    }
}
