/* Pop-up de Cadastro/Login */
.auth-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.auth-popup-overlay.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.auth-popup-container {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 450px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.auth-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10;
}

.auth-popup-close:hover {
    background: #f5f5f5;
    color: #333;
    transform: rotate(90deg);
}

.auth-popup-header {
    text-align: center;
    padding: 30px 30px 20px;
    border-bottom: 1px solid #eee;
}

.auth-popup-logo {
    max-width: 180px;
    height: auto;
    margin-bottom: 20px;
}

.auth-popup-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

.auth-popup-subtitle {
    font-size: 14px;
    color: #666;
}

.auth-popup-tabs {
    display: flex;
    border-bottom: 2px solid #eee;
    background: #f9f9f9;
}

.auth-popup-tab {
    flex: 1;
    padding: 15px;
    text-align: center;
    background: transparent;
    border: none;
    font-size: 16px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.auth-popup-tab:hover {
    color: #333;
    background: #fff;
}

.auth-popup-tab.active {
    color: #000;
    background: #fff;
}

.auth-popup-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #000;
}

.auth-popup-content {
    padding: 30px;
}

.auth-popup-form {
    display: none;
}

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

.auth-form-group {
    margin-bottom: 20px;
}

.auth-form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.auth-form-input {
    width: 100%;
    padding: 12px 15px;
    font-size: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.auth-form-input:focus {
    outline: none;
    border-color: #000;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.auth-form-checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.auth-form-checkbox {
    margin-right: 8px;
}

.auth-form-checkbox-label {
    font-size: 13px;
    color: #666;
}

.auth-form-submit {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 700;
    color: white;
    background: #000;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.auth-form-submit:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.auth-form-submit:active {
    transform: translateY(0);
}

.auth-form-link {
    text-align: center;
    margin-top: 15px;
    font-size: 13px;
    color: #666;
}

.auth-form-link a {
    color: #000;
    font-weight: 600;
    text-decoration: none;
}

.auth-form-link a:hover {
    text-decoration: underline;
}

.auth-popup-footer {
    text-align: center;
    padding: 20px 30px;
    background: #f9f9f9;
    border-top: 1px solid #eee;
    font-size: 12px;
    color: #999;
}

.auth-error-message {
    background: #fee;
    color: #c33;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
    display: none;
}

.auth-error-message.active {
    display: block;
}

.auth-success-message {
    background: #efe;
    color: #3c3;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
    display: none;
}

.auth-success-message.active {
    display: block;
}

/* Responsivo */
@media (max-width: 768px) {
    .auth-popup-container {
        width: 95%;
        max-height: 95vh;
    }
    
    .auth-popup-header {
        padding: 20px 20px 15px;
    }
    
    .auth-popup-logo {
        max-width: 150px;
    }
    
    .auth-popup-title {
        font-size: 20px;
    }
    
    .auth-popup-content {
        padding: 20px;
    }
    
    .auth-popup-tab {
        font-size: 14px;
        padding: 12px;
    }
}



@media (max-width: 768px) {
    .auth-popup-logo {
        margin: 0 auto;
        display: block;
    }
}

